Sha256: 8609c8949b5c2a99ef518a1ebfa520029e5ee9fae134e5ac6b7b8d71de0f2e88

Contents?: true

Size: 1.05 KB

Versions: 12

Compression:

Stored size: 1.05 KB

Contents

// API key for http://openlayers.org. Please get your own at
// http://bingmapsportal.com/ and use that instead.
var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf";

var map = new OpenLayers.Map('map', {
    controls: [
        new OpenLayers.Control.Attribution(),
        new OpenLayers.Control.Navigation(),
        new OpenLayers.Control.PanZoomBar(),
        new OpenLayers.Control.LayerSwitcher()
    ]
});

var road3 = new OpenLayers.Layer.Bing({
    name: "Road tiles with 3 zoom levels",
    type: "Road",
    key: apiKey,
    maxResolution: 76.43702827453613,
    numZoomLevels: 3
});
var road5 = new OpenLayers.Layer.Bing({
    name: "Road tiles with 5 zoom levels",
    type: "Road",
    key: apiKey,
    numZoomLevels: 5
});
var road = new OpenLayers.Layer.Bing({
    name: "Road tiles with all zoom levels",
    type: "Road",
    key: apiKey
});

map.addLayers([road3, road5, road]);
map.setCenter(new OpenLayers.LonLat(-71.147, 42.472).transform(
    new OpenLayers.Projection("EPSG:4326"),
    map.getProjectionObject()
), 1);

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
postrunner-0.0.10 misc/openlayers/examples/bing-tiles-restrictedzoom.js
postrunner-0.0.9 misc/openlayers/examples/bing-tiles-restrictedzoom.js
postrunner-0.0.8 misc/openlayers/examples/bing-tiles-restrictedzoom.js
postrunner-0.0.7 misc/openlayers/examples/bing-tiles-restrictedzoom.js
postrunner-0.0.6 misc/openlayers/examples/bing-tiles-restrictedzoom.js
postrunner-0.0.5 misc/openlayers/examples/bing-tiles-restrictedzoom.js
postrunner-0.0.4 misc/openlayers/examples/bing-tiles-restrictedzoom.js
gb_mapfish_appserver-0.0.5 vendor/assets/javascripts/openlayers/examples/bing-tiles-restrictedzoom.js
gb_mapfish_appserver-0.0.4 vendor/assets/javascripts/openlayers/examples/bing-tiles-restrictedzoom.js
gb_mapfish_appserver-0.0.3 vendor/assets/javascripts/openlayers/examples/bing-tiles-restrictedzoom.js
gb_mapfish_appserver-0.0.2 vendor/assets/javascripts/openlayers/examples/bing-tiles-restrictedzoom.js
gb_mapfish_appserver-0.0.1 vendor/assets/javascripts/openlayers/examples/bing-tiles-restrictedzoom.js