Re: [OpenLayers-Users] Different icons for popups

2009-01-30 Thread bzrudi
Hi, stupid me. I found the problem. Thanks to your advice that the code should work I looked around and found that I just forget to add the 'attraction' attribute to the 'propertyName' list of my WFS request. And thanks for your advice with the last comma, hopefully there are no more IE quirks

Re: [OpenLayers-Users] WMS GetFeatureInfo - difficult to click exactly on a point

2009-01-30 Thread Kimball, David (DCR)
Thanks for your help everyone...you're right Chris, I'm using GeoServer not Mapserver. So on Ivan's suggestion (and with Aleda's help) I went with a WFS GetFeature request with a +/- 5 pixel BBOX (to make the points and lines easier to select) and a custom list of fields (not including the geometr

[OpenLayers-Users] Any options for an introductory OpenLayers training?

2009-01-30 Thread Freeman, Aleda (EEA)
I think I have a number of users who would really love an OpenLayers training workshop (myself included). A hands-on few hours "how to get started with OpenLayers". The online examples are good, but sometimes it helps to have a training to get jump started. I went to a 4 hours "how to get starte

Re: [OpenLayers-Users] Popup Property/Method

2009-01-30 Thread Erik Uzureau
I don't see any reason why setContentHTML shouldn't be API. anyone else? Erik On Fri, Jan 30, 2009 at 10:53, Joao Duarte wrote: > Hi, > > > > I have a Vector Layer with one marker. Also, I have a click handler for > that marker to open a popup. Each time the popup is opened its content may > b

Re: [OpenLayers-Users] Different icons for popups

2009-01-30 Thread Arnd Wippermann
Hi, If your features have an attribute named attraction with the attribute value = "attraction" or "museum", your code should display the icon. var lookup = { "attraction": //value of attribute attraction {externalGraphic: '../attraction.png', pointRadius: 15, fillOpacity

[OpenLayers-Users] Popup Property/Method

2009-01-30 Thread Joao Duarte
Hi, I have a Vector Layer with one marker. Also, I have a click handler for that marker to open a popup. Each time the popup is opened its content may be different, so I’m creating a new popup for each click, passing it the content to display. However I would like to only create the popup o

Re: [OpenLayers-Users] Problem when switching WMS layers on and off with Google Base Layer

2009-01-30 Thread Christopher Schmidt
On Fri, Jan 30, 2009 at 09:04:04AM -0500, Robert Hicks wrote: > Thanks for the reply, does this mean I cannot use 4326 as an srs for my > overlays? Yes. It is not possible to accurately overlay raster layers in differing projections in a Javascript application. You will need the server to reproje

[OpenLayers-Users] Different icons for popups

2009-01-30 Thread bzrudi
Hi list! I have a strange problem with applying different icons to my markers/popups using addUniqueValueRules(). I see all the examples and read a lot but unfortunately it doesn't work as expected, so one may help me out here please ;-) So what I did. Defined a styleMap as below and bind my V

Re: [OpenLayers-Users] Problem when switching WMS layers on and off with Google Base Layer

2009-01-30 Thread Robert Hicks
Thanks for the reply, does this mean I cannot use 4326 as an srs for my overlays? I have in the layer declaration srs: 'EPSG:4326', but in firebug I get a bad request 404 reported and in the call it says EPSG 900913. On Thu, Jan 29, 2009 at 4:34 PM, Christopher Schmidt < crschm...@metacarta.com> w

Re: [OpenLayers-Users] SelectFeature usage in OpenLayers 2.7

2009-01-30 Thread Subha Ramakrishnan
Hi Thanks a lot for the help. It works fine now. Thanks again. Regards, Subha Christopher Schmidt wrote: > On Fri, Jan 30, 2009 at 06:40:56PM +0530, Subha Ramakrishnan wrote: > >> Hi >> >> I am using Openlayers with mapserver and recently upgraded to Openlayers >> 2.7. >> From the document

Re: [OpenLayers-Users] setVisibility VS visibility:false

2009-01-30 Thread Alexandre Dube
Christopher Schmidt wrote: > > Having perused the code, I don't see any evidence that passing it in the > options has any different behavior than calling setVisibility after > creating the layer. > Got it. Thanks Eric, Christopher. -- Alexandre Dubé Mapgears www.mapgears.com _

Re: [OpenLayers-Users] SelectFeature usage in OpenLayers 2.7

2009-01-30 Thread Christopher Schmidt
On Fri, Jan 30, 2009 at 06:40:56PM +0530, Subha Ramakrishnan wrote: > Hi > > I am using Openlayers with mapserver and recently upgraded to Openlayers > 2.7. > From the documentation and the mail archive, I found that there is a > change with this control from 2.6 to 2.7. > > I've a vector laye

[OpenLayers-Users] SelectFeature usage in OpenLayers 2.7

2009-01-30 Thread Subha Ramakrishnan
Hi I am using Openlayers with mapserver and recently upgraded to Openlayers 2.7. From the documentation and the mail archive, I found that there is a change with this control from 2.6 to 2.7. I've a vector layer with multiple points on it. And for every point i add a selectFeature to show a p

Re: [OpenLayers-Users] setVisibility VS visibility:false

2009-01-30 Thread Christopher Schmidt
On Fri, Jan 30, 2009 at 06:45:24AM +0100, Eric Lemoine wrote: > Hi > > It does make any difference at creation time as far as I know. I > personally find it more elegant to pass the initial visibility as a > config option. Having perused the code, I don't see any evidence that passing it in the o

Re: [OpenLayers-Users] Adding a vector feature from WKT

2009-01-30 Thread Christopher Schmidt
On Fri, Jan 30, 2009 at 01:25:26AM -0800, Derek Watling wrote: > > Hi Cristopher > > When using your Format.WKT the property gets highlighted as expected but > when the Zoom Level changes I get a "'renderIntent' is null or not an > object" followed by "'this.element.scrolls' is null or not an obj

Re: [OpenLayers-Users] Cannot cycle through vector layer features

2009-01-30 Thread Christopher Schmidt
On Fri, Jan 30, 2009 at 06:50:58AM +0100, Eric Lemoine wrote: > Right. The Layer.GML constructor triggers an HTTP request and returns > before the response is received. Actually, the constructor oesn't trigger an HTTP request; that happens the first time the layer is added to a map with a valid ce

Re: [OpenLayers-Users] Projection object, use and documentation.

2009-01-30 Thread Christopher Schmidt
On Fri, Jan 30, 2009 at 10:19:48AM -, David Potts wrote: > Hi List > > I have having some problems with the Projection object, I am trying to > use it set up a layer ojbect on a google map layer. David, By default, you may not need to use anything to accomplish this goal. Can you explain wh

[OpenLayers-Users] Projection object, use and documentation.

2009-01-30 Thread David Potts
Hi List I have having some problems with the Projection object, I am trying to use it set up a layer ojbect on a google map layer. The projection object OpenLayers. Projection includes functions to return the SRS code units string for maps and takes an optional object with properties to set on

Re: [OpenLayers-Users] WMS GetFeatureInfo - difficult to click exactly on a point

2009-01-30 Thread Ivan Grcic
Hi, i think its 2px default in Geoserver and cant be configured still. You have to write ur own WFS request where u calculate BBOX.. Take a look at wfsgetfeature control, might help http://dev.openlayers.org/sandbox/topp/wfs/examples/wfs-getfeature.html cheers On Fri, Jan 30, 2009 at 5:36 AM, C

Re: [OpenLayers-Users] Adding a vector feature from WKT

2009-01-30 Thread Derek Watling
Hi Cristopher When using your Format.WKT the property gets highlighted as expected but when the Zoom Level changes I get a "'renderIntent' is null or not an object" followed by "'this.element.scrolls' is null or not an object" error messages. I'm fairly new to TileCache / OpenLayers but would li