summaryrefslogtreecommitdiff
path: root/misc/openlayers/examples/bing-tiles.js
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2015-10-17 21:36:38 +0200
committerChris Schlaeger <chris@linux.com>2015-10-17 21:36:38 +0200
commite30f267181d990947e67909de4809fa941698c85 (patch)
tree46e9f94c2b3699ed378963b420b8a8d361286ea1 /misc/openlayers/examples/bing-tiles.js
parente763ceb183f389fcd314a4a6a712d87c9d4cdb32 (diff)
downloadpostrunner-e30f267181d990947e67909de4809fa941698c85.zip
Upgrading openlayers to 3.x
Diffstat (limited to 'misc/openlayers/examples/bing-tiles.js')
-rw-r--r--misc/openlayers/examples/bing-tiles.js31
1 files changed, 0 insertions, 31 deletions
diff --git a/misc/openlayers/examples/bing-tiles.js b/misc/openlayers/examples/bing-tiles.js
deleted file mode 100644
index e99c589..0000000
--- a/misc/openlayers/examples/bing-tiles.js
+++ /dev/null
@@ -1,31 +0,0 @@
-// 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');
-
-var road = new OpenLayers.Layer.Bing({
- key: apiKey,
- type: "Road",
- // custom metadata parameter to request the new map style - only useful
- // before May 1st, 2011
- metadataParams: {mapVersion: "v1"}
-});
-var aerial = new OpenLayers.Layer.Bing({
- key: apiKey,
- type: "Aerial"
-});
-var hybrid = new OpenLayers.Layer.Bing({
- key: apiKey,
- type: "AerialWithLabels",
- name: "Bing Aerial With Labels"
-});
-
-map.addLayers([road, aerial, hybrid]);
-map.addControl(new OpenLayers.Control.LayerSwitcher());
-// Zoom level numbering depends on metadata from Bing, which is not yet loaded.
-var zoom = map.getZoomForResolution(76.43702827453613);
-map.setCenter(new OpenLayers.LonLat(-71.147, 42.472).transform(
- new OpenLayers.Projection("EPSG:4326"),
- map.getProjectionObject()
-), zoom);