diff options
author | Chris Mytton <chrismytton@gmail.com> | 2019-11-27 13:45:48 +0000 |
---|---|---|
committer | Chris Mytton <chrismytton@gmail.com> | 2019-11-27 13:45:48 +0000 |
commit | 855ef20bc4f4ee6d4b0b12cd363e1fc43d16d110 (patch) | |
tree | 7250d9cde706b638724e0aca44e0c6d305a2af86 /web/js | |
parent | 7ce3a0a38967bd5a35b20b95c38c5471d44998e4 (diff) |
[Bexley] Switch to use MasterMap map type
Now that both Peterborough and Bexley are using MasterMap data we can
combine them into a single "MasterMap" map type to reduce code
duplication.
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/map-bexley.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/web/js/map-bexley.js b/web/js/map-bexley.js deleted file mode 100644 index 38911f950..000000000 --- a/web/js/map-bexley.js +++ /dev/null @@ -1,24 +0,0 @@ -fixmystreet.maps.config = (function(original) { - return function(){ - original(); - fixmystreet.map_type = OpenLayers.Layer.Bexley; - }; -})(fixmystreet.maps.config); - -OpenLayers.Layer.Bexley = OpenLayers.Class(OpenLayers.Layer.BingUK, { - get_urls: function(bounds, z) { - if (z < 17) { - return OpenLayers.Layer.BingUK.prototype.get_urls.apply(this, arguments); - } - - var urls = []; - var servers = [ '', 'a.', 'b.', 'c.' ]; - var base = "//{S}tilma.mysociety.org/bexley/${z}/${x}/${y}.png"; - for (var i=0; i < servers.length; i++) { - urls.push( base.replace('{S}', servers[i]) ); - } - return urls; - }, - - CLASS_NAME: "OpenLayers.Layer.Bexley" -}); |