[OpenLayers-Users] marker can be created from feature?

JK Chen jk.chen at sdl.usu.edu
Tue Jun 7 18:32:00 EDT 2011


The document says such a function exists but the documentation says it returns null. Is this a complete work?


1.      What is the right way to create markers? Via feature? Or via marker layers.  If through marker layer, then  I have two piece of data structures to maintain, which is not good practice.

2.      OpenLayers.Feature.Vector does not have property for marker, but OpenLayers.Feature does have such a property. From the naming of these two class, it appears to me that one is the parent. Parent has a property, but the child has no such property. That sounds weird to me...

Your insights are appreciated.

JK

OpenLayers.Feature.Vector
-----------------------------------------------------------
createMarker
createMarker: function()

HACK

we need to decide if all vector features should be able to create markers


Returns

{OpenLayers.Marker<http://dev.openlayers.org/docs/files/OpenLayers/Marker-js.html#OpenLayers.Marker>} For now just returns null

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110607/b6920391/attachment-0001.html


More information about the Users mailing list