]> git.openstreetmap.org Git - rails.git/blobdiff - public/javascripts/map.js
Only the view and edit tabs really need updating when the map moves.
[rails.git] / public / javascripts / map.js
index 781ea5551de36d67030e872cc07ae3a1dac7f05f..4816f762bdf2e2ad4e297838afd6c97c28c36c51 100644 (file)
@@ -41,7 +41,7 @@ function getTileURL(bounds) {
 
    if (y < 0 || y >= limit)
    {
-     return null;
+     return OpenLayers.Util.getImagesLocation() + "404.png";
    }
    else
    {
@@ -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);