[OpenLayers-Users] get markers from layers?

ulao S_K_U_N_X at yahoo.com
Wed Aug 11 13:35:34 EDT 2010


I need to devise a way to get an array of markers from a layer...

I see this in the docs OpenLayers. Layer. Markers but under the Layer class
there is no Marker array ?

for example I tried this
 
var test = Map.layers
alert ( test.markers ) // undefined
alert ( test.Markers ) // undefined

I would also need a way to get features. 

Is this the way its intended to work? If so why do i get undefined.

Do I need to reference the [OpenLayers. Layer. Marker]  itself? Can I not
get to the markers from map?
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/get-markers-from-layers-tp5413201p5413201.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list