From eb6279c4d0354ce5cedc87e49065f0d705b02122 Mon Sep 17 00:00:00 2001 From: tschaub Date: Fri, 28 Oct 2011 15:31:10 -0600 Subject: [PATCH 1/3] Removing oam layer (service not up). --- examples/spherical-mercator.html | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/examples/spherical-mercator.html b/examples/spherical-mercator.html index 625b93da9e..2c48280139 100644 --- a/examples/spherical-mercator.html +++ b/examples/spherical-mercator.html @@ -98,16 +98,8 @@ function init(){ // create OSM layer var mapnik = new OpenLayers.Layer.OSM(); - // create OAM layer - var oam = new OpenLayers.Layer.XYZ( - "OpenAerialMap", - "http://tile.openaerialmap.org/tiles/1.0.0/openaerialmap-900913/${z}/${x}/${y}.png", - { - sphericalMercator: true - } - ); - // create OSM layer + // create another OSM layer var osmarender = new OpenLayers.Layer.OSM( "OpenStreetMap (Tiles@Home)", "http://tah.openstreetmap.org/Tiles/tile/${z}/${x}/${y}.png" @@ -129,7 +121,7 @@ function init(){ var vector = new OpenLayers.Layer.Vector("Editable Vectors"); map.addLayers([gmap, gsat, ghyb, veroad, veaer, vehyb, - yahoo, yahoosat, yahoohyb, oam, mapnik, osmarender, + yahoo, yahoosat, yahoohyb, mapnik, osmarender, wms, vector]); map.addControl(new OpenLayers.Control.LayerSwitcher()); map.addControl(new OpenLayers.Control.EditingToolbar(vector)); From 423bb39f23043bd60b57f254bd088b8229e05f58 Mon Sep 17 00:00:00 2001 From: tschaub Date: Fri, 28 Oct 2011 15:41:53 -0600 Subject: [PATCH 2/3] Making this example less outdated. --- examples/spherical-mercator.html | 113 +++++++++++++------------------ 1 file changed, 47 insertions(+), 66 deletions(-) diff --git a/examples/spherical-mercator.html b/examples/spherical-mercator.html index 2c48280139..7040e30044 100644 --- a/examples/spherical-mercator.html +++ b/examples/spherical-mercator.html @@ -16,70 +16,79 @@ height: 512px; } - /* avoid pink tiles */ - .olImageLoadError { - background-color: transparent !important; - } - + + + +

OpenLayers Spherical Mercator Example

+ +
+ spherical, mercator, osm, xyz, google, virtual earth, yahoo, tms, tile +
+

+ Shows the use of the Spherical Mercator Layers, for overlaying + Google, Yahoo, Microsoft, and other layers with WMS and TMS tiles. +

+
+ +
- - -

OpenLayers Spherical Mercator Example

- -
- spherical, mercator, osm, xyz, google, virtual earth, yahoo, tms, tile -
-

- Shows the use of the Spherical Mercator Layers, for overlaying - Google, Yahoo, Microsoft, and other layers with WMS and TMS tiles. -

-
- -
-
From 58cc225b9b368ebede71c8f1536bfbb05807f468 Mon Sep 17 00:00:00 2001 From: tschaub Date: Fri, 28 Oct 2011 15:45:56 -0600 Subject: [PATCH 3/3] Syntax updates. --- examples/spherical-mercator.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/spherical-mercator.html b/examples/spherical-mercator.html index 7040e30044..18c8af721c 100644 --- a/examples/spherical-mercator.html +++ b/examples/spherical-mercator.html @@ -11,11 +11,12 @@ @@ -27,11 +28,11 @@

OpenLayers Spherical Mercator Example

- spherical, mercator, osm, xyz, google, virtual earth, yahoo, tms, tile + spherical, mercator, osm, xyz, google, virtual earth, yahoo, tile

Shows the use of the Spherical Mercator Layers, for overlaying - Google, Yahoo, Microsoft, and other layers with WMS and TMS tiles. + Google, Yahoo, Microsoft, and other layers with XYZ tiles.