Hello,
i create a marker with:
marker = new OpenLayers.Layer.Vector("Stationen", {
styleMap: new OpenLayers.StyleMap({
externalGraphic: "images/map/marker.png",
backgroundGraphic: "images/map/marker_shadow.png",
backgroundXOffset: 0,
backgroundYOffset: -7,
graphicZIndex: 10,
backgroundGraphicZIndex: 11,
graphicWidth: 50,
graphicHeight: 50,
graphicYOffset: -22,
})
});
Now, i would change the “externalGraphic” to a other url after i created the marker.
How can i do that?