Re: [OpenLayers-Users] Register click event on OpenLayers.Feature.Vector

2010-06-09 Thread Imran Rajjad
Hi Ju try adding onSelect : check after toggle to your OpenLayers.Control.SelectFeature where check is var check =function(e){ alert(e.feature.id); } try it regards, Imran On Wed, Jun 9, 2010 at 2:03 PM, JuKiM wrote: > I've seen that this is happening when I reload the layers.. For cleaning

Re: [OpenLayers-Users] Register click event on OpenLayers.Feature.Vector

2010-06-09 Thread JuKiM
I've seen that this is happening when I reload the layers.. For cleaning the map and redraw other things.. if (lyrTesting) { lyrTesting.destroy(); } lyrTesting = new OpenLayers.Layer.Vector('Testing'); map.addLayer(lyrTesting); I'll investigate

Re: [OpenLayers-Users] Register click event on OpenLayers.Feature.Vector

2010-06-09 Thread JuKiM
Hi, I'll take a look to your examples.. But after a little searching I'm trying do like this: var polygonFeature = new OpenLayers.Feature.Vector(linearRing, null, style_poly); polygonFeature.data.OLPosition = position; polygonFeature.data.infoContent = szInformation; lyrTesting.addFeatures([poly

Re: [OpenLayers-Users] Register click event on OpenLayers.Feature.Vector

2010-06-08 Thread giraam
Hi, Maybe you can find something useful here.. http://trac.openlayers.org/wiki/UserRecipes http://trac.openlayers.org/wiki/UserRecipes =) Regards, - just another web developer -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/Register-click-event-on-OpenLayers-Feat

[OpenLayers-Users] Register click event on OpenLayers.Feature.Vector

2010-06-08 Thread JuKiM
Hi, I'm defining a line to display in the map in this way: var linearRing = new OpenLayers.Geometry.LinearRing(pointList); var polygonFeature = new OpenLayers.Feature.Vector(linearRing, null, style_poly); And now, I would like to catch the mousedown event, like I do with markers.. Is there any