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
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
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
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
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