diff options
author | Chris Schlaeger <chris@linux.com> | 2014-08-12 21:56:44 +0200 |
---|---|---|
committer | Chris Schlaeger <chris@linux.com> | 2014-08-12 21:56:44 +0200 |
commit | ea346a785dc1b3f7c156f6fc33da634e1f1a627b (patch) | |
tree | af67530553d20b6e82ad60fd79593e9c4abf5565 /misc/openlayers/tests/manual/google-fullscreen-overlay.html | |
parent | 59741cd535c47f25971bf8c32b25da25ceadc6d5 (diff) | |
download | postrunner-ea346a785dc1b3f7c156f6fc33da634e1f1a627b.zip |
Adding jquery, flot and openlayers to be included with the GEM.v0.0.4
Diffstat (limited to 'misc/openlayers/tests/manual/google-fullscreen-overlay.html')
-rw-r--r-- | misc/openlayers/tests/manual/google-fullscreen-overlay.html | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/misc/openlayers/tests/manual/google-fullscreen-overlay.html b/misc/openlayers/tests/manual/google-fullscreen-overlay.html new file mode 100644 index 0000000..80a8fd4 --- /dev/null +++ b/misc/openlayers/tests/manual/google-fullscreen-overlay.html @@ -0,0 +1,54 @@ +<!DOCTYPE html> +<html> + <head> + <title>Google v3 with Overlay Test</title> + <link rel="stylesheet" href="../../theme/default/style.css" type="text/css" /> + <link rel="stylesheet" href="../../examples/style.css" type="text/css"> + <style type="text/css"> + html, body, #map { + width: 100%; + height: 100%; + margin: 0; + } + #text { + position: absolute; + top: 1em; + right: 1em; + width: 512px; + z-index: 20000; + background-color: white; + padding: 0 0.5em 0.5em 0.5em; + } + </style> + <script src="http://maps.google.com/maps/api/js?v=3.6&sensor=false"></script> + <script src="../../lib/OpenLayers.js"></script> + </head> + <body> + <div id="map"></div> + <div id="text"> + <h1 id="title">Google v3 with Overlay Test</h1> + + <div id="docs"> + <p>This test shows that the Google layer and overlays are not in sync while dragging or zooming.</p> + </div> + </div> + <script type="text/javascript"> + var options = { + projection: new OpenLayers.Projection("EPSG:900913"), + units: "m", + maxResolution: 156543.0339, + maxExtent: new OpenLayers.Bounds(-20037508, -20037508, 20037508, 20037508) + }; + var map = new OpenLayers.Map('map', options); + var gmap = new OpenLayers.Layer.Google( + "Google Streets", {sphericalMercator: true} + ); + var states = new OpenLayers.Layer.WMS( + "USA States", "http://demo.opengeo.org/geoserver/wms", + {layers: "topp:states", transparent: true} + ); + map.addLayers([gmap, states]); + map.setCenter(new OpenLayers.LonLat(-10028537.429619, 4598451.0222853), 5); + </script> + </body> +</html> |