aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-bing.js
blob: 748a035256ae0c0e49426ff76bee7dd05faeb6e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
YAHOO.util.Event.onContentReady('map', 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;
    });
});