Talk:OpenLayers Marker Example

From OpenStreetMap Wiki
Jump to navigation Jump to search

Maybe this is just a temporary glitch or an undocumented feature...

Custom Icon seems only to work with a single marker:

  • layerMarkers.addMarker(new OpenLayers.Marker(lonLat,icon));

If you want multiple markers per layer, try this:

  • layerMarkers.addMarker(new OpenLayers.Marker(lonLat));

See also Die_JavaScript_Dateien, which uses the feature-Member of the Marker-class

---N3S 11:26, 28 March 2009 (UTC)

Example link http://dev.openstreetmap.org/~edgemaster/OpenLayersExamples/Marker/ does not work (http-code: 404). jklippel 14:24, 30 May 2010 (UTC)