[OpenLayers-Commits] r12365 - trunk/openlayers/tests/manual

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Wed Sep 14 14:42:15 EDT 2011


Author: ahocevar
Date: 2011-09-14 11:42:14 -0700 (Wed, 14 Sep 2011)
New Revision: 12365

Added:
   trunk/openlayers/tests/manual/google-fullscreen-overlay.html
Log:
new manual test that shows that Google layer and overlays are not in sync

Added: trunk/openlayers/tests/manual/google-fullscreen-overlay.html
===================================================================
--- trunk/openlayers/tests/manual/google-fullscreen-overlay.html	                        (rev 0)
+++ trunk/openlayers/tests/manual/google-fullscreen-overlay.html	2011-09-14 18:42:14 UTC (rev 12365)
@@ -0,0 +1,54 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>Google v3 Fullscreen 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.5&amp;sensor=false"></script>
+    <script src="../../lib/OpenLayers.js"></script>
+  </head>
+  <body>
+    <div id="map"></div>
+      <div id="text">
+          <h1 id="title">Google v3 Fullscreen with Overlay Test</h1>
+
+        <div id="docs">
+            <p>This test shows that the Google layer and overlays are not in sync when dragging .</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>



More information about the Commits mailing list