diff options
author | Struan Donald <struan@exo.org.uk> | 2013-06-25 13:06:56 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2013-06-25 13:06:56 +0100 |
commit | 0b2b47291d15eb5ef49911359c25bb7daf4ac775 (patch) | |
tree | 999fcebd729211f81eccfb7ecee8e1e31eb393fc /www/js/map-OpenLayers.js | |
parent | fced51235407e88d4c718b6fb9ca29af4ae31bc2 (diff) |
remove unused file
Diffstat (limited to 'www/js/map-OpenLayers.js')
-rw-r--r-- | www/js/map-OpenLayers.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/www/js/map-OpenLayers.js b/www/js/map-OpenLayers.js index 26a29b2..07f1d4d 100644 --- a/www/js/map-OpenLayers.js +++ b/www/js/map-OpenLayers.js @@ -349,26 +349,6 @@ OpenLayers.Control.PanZoomFMS = OpenLayers.Class(OpenLayers.Control.PanZoom, { }); -/* Overriding Permalink so that it can pass the correct zoom to OSM */ -OpenLayers.Control.PermalinkFMS = OpenLayers.Class(OpenLayers.Control.Permalink, { - updateLink: function() { - var separator = this.anchor ? '#' : '?'; - var href = this.base; - if (href.indexOf(separator) != -1) { - href = href.substring( 0, href.indexOf(separator) ); - } - - href += separator + OpenLayers.Util.getParameterString(this.createParams(null, this.map.getZoom()+fixmystreet.zoomOffset)); - // Could use mlat/mlon here as well if we are on a page with a marker - if (this.anchor && !this.element) { - window.location.href = href; - } - else { - this.element.href = href; - } - } -}); - /* Pan data handler */ OpenLayers.Format.FixMyStreet = OpenLayers.Class(OpenLayers.Format.JSON, { read: function(json, filter) { |