User getImageLocation to get the URLs for markers
[rails.git] / app / views / export / start.js.erb
index 5a48dba25866fbefcd00278386807cfa724e4387..79d0db4a9e80ab8a21138a94855062c85ffa0999 100644 (file)
@@ -124,7 +124,7 @@ function startMarker() {
     markerLayer = new OpenLayers.Layer.Vector("",{
       displayInLayerSwitcher: false,
       style: {
     markerLayer = new OpenLayers.Layer.Vector("",{
       displayInLayerSwitcher: false,
       style: {
-        externalGraphic: OpenLayers.Util.getImagesLocation() + "marker.png",
+        externalGraphic: OpenLayers.Util.getImageLocation("marker.png"),
         graphicXOffset: -10.5,
         graphicYOffset: -25,
         graphicWidth: 21,
         graphicXOffset: -10.5,
         graphicYOffset: -25,
         graphicWidth: 21,