From 03101401b95f75520b209a7436b8ae49e3f2eb0e Mon Sep 17 00:00:00 2001 From: crschmidt Date: Mon, 3 Nov 2008 22:12:57 +0000 Subject: [PATCH] Change the sundials example to also hae a google layer. git-svn-id: http://svn.openlayers.org/trunk/openlayers@8252 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- ...undials-osm.html => sundials-spherical-mercator.html} | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) rename examples/{sundials-osm.html => sundials-spherical-mercator.html} (88%) diff --git a/examples/sundials-osm.html b/examples/sundials-spherical-mercator.html similarity index 88% rename from examples/sundials-osm.html rename to examples/sundials-spherical-mercator.html index be53738462..e6850f51be 100644 --- a/examples/sundials-osm.html +++ b/examples/sundials-spherical-mercator.html @@ -1,6 +1,7 @@ - OpenLayers: Sundials on a Map + OpenLayers: Sundials on a Spherical Mercator Map + @@ -41,6 +42,7 @@ } ); map.addLayer(mapnik); + map.addLayer(new OpenLayers.Layer.Google("Google",{sphericalMercator:true})); map.addLayer(new OpenLayers.Layer.GML("KML", "kml/sundials.kml", { format: OpenLayers.Format.KML, @@ -56,6 +58,7 @@ map.addControl(selectControl); selectControl.activate(); map.zoomToExtent(new OpenLayers.Bounds(68.774414,11.381836,123.662109,34.628906).transform(map.displayProjection, map.projection)); + map.addControl(new OpenLayers.Control.LayerSwitcher()); } function onPopupClose(evt) { selectControl.unselect(selectedFeature); @@ -92,12 +95,12 @@ -

KML Layer Example

+

OSM + Google Maps + KML Reprojection

- Demonstrates loading and displaying a KML file on top of OpenStreetMap (OSM) data. + Demonstrates loading and displaying a KML file on top of OpenStreetMap (OSM) and Google Maps data. Loads data from a KML file of sundials.