diff options
author | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2011-01-05 20:13:55 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@balti.ukcod.org.uk> | 2011-01-05 20:13:55 +0000 |
commit | 7f834105f3ec090b7e8827460fee4847a65a03c7 (patch) | |
tree | c70ff9bb41af2799d3140120328e3481c0be99dd /web/js/map-bing.js | |
parent | 30e74ddfb745b11a387baf61451f18eb7ba94808 (diff) |
Prototype Bing stuff.
Diffstat (limited to 'web/js/map-bing.js')
-rw-r--r-- | web/js/map-bing.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/web/js/map-bing.js b/web/js/map-bing.js new file mode 100644 index 000000000..fbbbcc676 --- /dev/null +++ b/web/js/map-bing.js @@ -0,0 +1,21 @@ +YAHOO.util.Event.onContentReady('map', function() { + var centre = new Microsoft.Maps.Location( fixmystreet.lat, fixmystreet.lon ); + var map = new Microsoft.Maps.Map(document.getElementById("map"), { + 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; + }); +}); |