]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
Use David Earl's arrow icon to show the position of a search result.
[rails.git] / public / javascripts / map.js
index 781ea5551de36d67030e872cc07ae3a1dac7f05f..a48e71077093496cb5c0b11f985d96b63bdd29dc 100644 (file)
@@ -51,6 +51,14 @@ function getTileURL(bounds) {
    }
 }
 
+function getArrowIcon() {
+   var size = new OpenLayers.Size(25, 22);
+   var offset = new OpenLayers.Pixel(-30, -27);
+   var icon = new OpenLayers.Icon("/images/arrow.png", size, offset);
+
+   return icon;
+}
+
 function addMarkerToMap(position, icon, description) {
    var marker = new OpenLayers.Marker(position, icon);