From ea346a785dc1b3f7c156f6fc33da634e1f1a627b Mon Sep 17 00:00:00 2001 From: Chris Schlaeger Date: Tue, 12 Aug 2014 21:56:44 +0200 Subject: Adding jquery, flot and openlayers to be included with the GEM. --- misc/openlayers/examples/mapquest.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 misc/openlayers/examples/mapquest.js (limited to 'misc/openlayers/examples/mapquest.js') diff --git a/misc/openlayers/examples/mapquest.js b/misc/openlayers/examples/mapquest.js new file mode 100644 index 0000000..5a45d1c --- /dev/null +++ b/misc/openlayers/examples/mapquest.js @@ -0,0 +1,36 @@ +var map = new OpenLayers.Map({ + div: "map", + projection: "EPSG:900913", + layers: [ + new OpenLayers.Layer.XYZ( + "OpenStreetMap", + [ + "http://otile1.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png", + "http://otile2.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png", + "http://otile3.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png", + "http://otile4.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png" + ], + { + attribution: "Data, imagery and map information provided by MapQuest, Open Street Map and contributors, CC-BY-SA ", + transitionEffect: "resize" + } + ), + new OpenLayers.Layer.XYZ( + "Imagery", + [ + "http://otile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png", + "http://otile2.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png", + "http://otile3.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png", + "http://otile4.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png" + ], + { + attribution: "Tiles Courtesy of MapQuest. Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency. ", + transitionEffect: "resize" + } + ) + ], + center: [0, 0], + zoom: 1 +}); + +map.addControl(new OpenLayers.Control.LayerSwitcher()); -- cgit v1.2.3