Change Marker Icon

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?

Change the “externalGraphic” to a other url.

What is exactly your problem?

Hello,
i create the marker with this image. After i would change this image to a other one.
Can you show me the code?

Thank you!

What is the ${} syntax???