aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/map-bing.js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-04-26 14:59:01 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-04-26 14:59:01 +0100
commitd623b70d7273ad212074fa1e008c4e3ceb480fdf (patch)
tree9fabfd933c30507b941b0d7c4b6fdea43e02bbd6 /www/js/map-bing.js
parent59d3e77945bc069bd84f55a68adc6b3873baa7ac (diff)
Fix displaying of map tiles.cordova-6-fix-maps
This updates the map tile code to match the website, allowing easier non-UK usage of Bing Maps by not including the map-fms.js file.
Diffstat (limited to 'www/js/map-bing.js')
-rw-r--r--www/js/map-bing.js22
1 files changed, 0 insertions, 22 deletions
diff --git a/www/js/map-bing.js b/www/js/map-bing.js
deleted file mode 100644
index 715a8ef..0000000
--- a/www/js/map-bing.js
+++ /dev/null
@@ -1,22 +0,0 @@
-$(function(){
- var centre = new Microsoft.Maps.Location( fixmystreet.latitude, fixmystreet.longitude );
- var map = new Microsoft.Maps.Map(document.getElementById("map"), {
- credentials: fixmystreet.key,
- mapTypeId: Microsoft.Maps.MapTypeId.ordnanceSurvey,
- center: centre,
- zoom: 15,
- enableClickableLogo: false,
- enableSearchLogo: false,
- showCopyright: false,
- showDashboard: true,
- showLogo: false,
- showScalebar: false
- });
- //minZoomLevel: 14,
- //numZoomLevels: 4
-
- Microsoft.Maps.Events.addHandler(map, "viewchangestart", function(e) {
- /* Doesn't work */
- if (map.getTargetZoom() < 12) { return false; }
- });
-});