[OpenLayers-Users] remove a specific marker from a marker layer

AlessioDL alessio.dilorenzo at gmail.com
Tue Sep 8 07:19:59 EDT 2009


Hi list, 

I added a marker layer to my map and populate it dynamically

on_Click="markers.addMarker(new OpenLayers.Marker(new
OpenLayers.LonLat('.$row['xy'].').transform(proj4326,proj900913)));">
Images/table/check 

the LonLat coordinates comes from postgis via php.
For every row of my resultset table I have an image-link that the user may
click to add the marker to the map if wanted.

So, if the user clicks on three diffent rows, he adds three markers to the
marker layer displaying them on the map in different positions.
What I'd like to do is to remove markers "one by one" and not with a
markers.clearMarkers(); that clear all the layer.

Is it possible? 

TIA alessio :-)
-- 
View this message in context: http://n2.nabble.com/remove-a-specific-marker-from-a-marker-layer-tp3602587p3602587.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list