[OpenLayers-Users] Get feature name from GML

2009-07-06 Thread Anthony Masinton
I'm a new user of OL and would like some help with getting feature names from GML. I have a layer based on a GML file with several polygons in it. Using the select-feature-openpopup example I am able to highlight each polygon and display a popup which gives the feature's ID (feature.id)

Re: [OpenLayers-Users] URL too long for IE mergeNewParams MapServer replacement variable

2009-07-06 Thread Andreas Hocevar
Hi, POST is not possible, because map tiles are loaded into img/ elements. What you could do, however, is use CQL filters instead of SQL strings. These are usually shorter. Not sure if Mapserver supports these though. Another thing you could do is use OGC filters and build an SLD dynamically. If

Re: [OpenLayers-Users] Get feature name from GML

2009-07-06 Thread Andreas Hocevar
Hi, On Mon, Jul 6, 2009 at 8:11 AM, Anthony Masintonamasin...@gmail.com wrote: I'm a new user of OL and would like some help with getting feature names from GML. I have a layer based on a GML file with several polygons in it. Using the select-feature-openpopup example I am able to highlight

Re: [OpenLayers-Users] Canceling a currently loading WMS layer

2009-07-06 Thread Andreas Hocevar
Hi, On Sat, Jul 4, 2009 at 5:36 PM, Tom Bseil...@gmail.com wrote: This thread suggested that there wasn't an elegant way to do this: http://openlayers.org/pipermail/dev/2008-March/002665.html Simply removing a layer still leaves some processing continuing in the background.  Has anyone found

Re: [OpenLayers-Users] Google Maps map does not reflect zoom level change

2009-07-06 Thread Andreas Hocevar
Hi, On Fri, Jul 3, 2009 at 11:19 PM, Axel Mülleraxel.muel...@avanux.de wrote: Based on some parameters I change the zoom level using map.setCenter(lonlat, zoom). This works perfectly for OSM Mapnik layer but not for Google layer where the pan zoom bar reflects the new zoom level but the map

Re: [OpenLayers-Users] Dragable markers

2009-07-06 Thread Andreas Hocevar
On Sat, Jul 4, 2009 at 10:39 PM, Admin TrouveTonGull.infocont...@trouvetongull.info wrote: Hello, i try to enable drag for georss markers with new OpenLayers.Control.DragFeature() but my markers are always not dragable :( What is wrong? Hard to tell without seeing your code. But I would

Re: [OpenLayers-Users] Dragable markers

2009-07-06 Thread Admin TrouveTonGull.info
Andreas Hocevar a écrit : Hard to tell without seeing your code. oups sorry, my map: http://www.trouvetongull.info/carte/ But I would gess you are using an OpenLayers.Layer.Markers or OpenLayers.Layer.GeoRSS. The DragFeature control only works with vector layers (Layer.Vector, Layer.GML,

Re: [OpenLayers-Users] Dragable markers

2009-07-06 Thread Andreas Hocevar
Hi, See http://dev.openlayers.org/releases/OpenLayers-2.8/doc/apidocs/files/OpenLayers/Control/DragFeature-js.html#OpenLayers.Control.DragFeature.OpenLayers.Control.DragFeature You need to configure the DragFeature control with the layer that contains the features you want to drag. Regards,

Re: [OpenLayers-Users] Dragable markers

2009-07-06 Thread Admin TrouveTonGull.info
Andreas Hocevar a écrit : You need to configure the DragFeature control with the layer that contains the features you want to drag. I try to make new OpenLayers.Control.DragFeature(name_layer1, name_layer2), with my layers but no change :( It's a bad syntax? thanks, Fred

[OpenLayers-Users] RE Priority for marker

2009-07-06 Thread Steve . Toutant
Hi, You can use raiseLayer to make sure the markers are on top http://dev.openlayers.org/docs/files/OpenLayers/Map-js.html#OpenLayers.Map.raiseLayer Steve Steve Toutant, M. Sc. Analyste en géomatique Secteur environnement Direction des risques biologiques, environnementaux et occupationnels

Re: [OpenLayers-Users] Dragable markers

2009-07-06 Thread Andreas Hocevar
Hi, On Mon, Jul 6, 2009 at 1:55 PM, Admin TrouveTonGull.infocont...@trouvetongull.info wrote: Andreas Hocevar a écrit : You need to configure the DragFeature control with the layer that contains the features you want to drag. I try to make new OpenLayers.Control.DragFeature(name_layer1,

Re: [OpenLayers-Users] Canceling a currently loading WMS layer

2009-07-06 Thread Tom B
Hi Andreas, Great, thanks. In case anyone else is trying to do this, I needed to call .destroy() on the layer for this to work (not sure if that's clear from the changeset). Just calling map.removeLayer() resulted in HTTP requests for WMS images continuing to be made after the layer was

[OpenLayers-Users] Change filter on vector layer

2009-07-06 Thread Lak Krishnan
I have a vector layer with a WFS protocol and filter as below var impactlocptlayer = new OpenLayers.Layer.Vector(Editable Features, { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy],

Re: [OpenLayers-Users] Change filter on vector layer

2009-07-06 Thread Andreas Hocevar
Hi, On Mon, Jul 6, 2009 at 4:38 PM, Lak Krishnanlakshmanan.krish...@mecklenburgcountync.gov wrote: I have a vector layer with a WFS protocol and filter as below var impactlocptlayer = new OpenLayers.Layer.Vector(Editable Features, {                                                strategies:

Re: [OpenLayers-Users] Change filter on vector layer

2009-07-06 Thread Lak Krishnan
That doesn't seem to work for me. Andreas Hocevar-2 wrote: Hi, On Mon, Jul 6, 2009 at 4:38 PM, Lak Krishnanlakshmanan.krish...@mecklenburgcountync.gov wrote: I have a vector layer with a WFS protocol and filter as below var impactlocptlayer = new OpenLayers.Layer.Vector(Editable

Re: [OpenLayers-Users] Dragable markers

2009-07-06 Thread Admin TrouveTonGull.info
I try to make new OpenLayers.Control.DragFeature(name_layer1, name_layer2), with my layers but no change :( It's a bad syntax? 1) Control.DragFeature only supports one layer 2) You have to pass the layer object, not the layer name. This requires of course that your layer is created

[OpenLayers-Users] Disable Zoom wheel

2009-07-06 Thread Admin TrouveTonGull.info
Hello, i try var movemap = new OpenLayers.Control.Navigation({'zoomWheelEnabled': false}); movemap.disableZoomWheel(); controls = map.getControlsByClass('OpenLayers.Control.Navigation'); for(var I = 0; icontrols.length; ++i) controls.disableZoomWheel(); but don't work :(

Re: [OpenLayers-Users] Disable Zoom wheel

2009-07-06 Thread Bart van den Eijnden (OSGIS)
Hi, when creating your map pass an array of controls with the right settings, so: var map = new OpenLayers.Map(mydiv, {controls: [ new OpenLayers.Control.Navigation({zoomWheelEnabled: false}), new OpenLayers.Control.PanZoom(),

Re: [OpenLayers-Users] Disable Zoom wheel

2009-07-06 Thread Admin TrouveTonGull.info
Bart van den Eijnden (OSGIS) a écrit : Best regards, Bart Oh thanks! :) Bye, Fred ___ Users mailing list Users@openlayers.org http://openlayers.org/mailman/listinfo/users

Re: [OpenLayers-Users] Dragable markers

2009-07-06 Thread Andreas Hocevar
On Mon, Jul 6, 2009 at 7:25 PM, Admin TrouveTonGull.infocont...@trouvetongull.info wrote: I try to make new OpenLayers.Control.DragFeature(name_layer1, name_layer2), with my layers but no change :( It's a bad syntax? 1) Control.DragFeature only supports one layer 2) You have to pass the

Re: [OpenLayers-Users] Change filter on vector layer

2009-07-06 Thread Andreas Hocevar
Hi, On Mon, Jul 6, 2009 at 6:58 PM, Lak Krishnanlakshmanan.krish...@mecklenburgcountync.gov wrote: That doesn't seem to work for me. After setting your new filter, try impactlocptlayer.refresh({force: true}); instead. Regards, Andreas. Andreas Hocevar-2 wrote: Hi, On Mon, Jul 6,

Re: [OpenLayers-Users] Change filter on vector layer

2009-07-06 Thread Lak Krishnan
That works! Thanks, Lak Krishnan From: Andreas Hocevar-2 (via Nabble) [mailto:ml-user+68206-1629903...@n2.nabble.com] Sent: Monday, July 06, 2009 1:57 PM To: Krishnan, Lakshmanan Subject: Re: [OpenLayers-Users] Change filter on vector layer Hi, On Mon,

[OpenLayers-Users] After a addFeatures() the feature are not displayed

2009-07-06 Thread Arnaud Vandecasteele
Hi all, It's been a couple of day that I'm trying to understand why after a addFeature method on my vector layer the feature are not displayed even if I do a redraw of the layer. But after a pan or zoom on the map the feature appear. Do you know where I've made a mistake? Best regards Arnaud

Re: [OpenLayers-Users] Google Maps map does not reflect zoom level change

2009-07-06 Thread Axel Müller
Andrea, Andreas Hocevar wrote: Based on some parameters I change the zoom level using map.setCenter(lonlat, zoom). This works perfectly for OSM Mapnik layer but not for Google layer where the pan zoom bar reflects the new zoom level but the map itself still shows the previous zoom level. Am I