From 656da076a1188a1c7a9f052b75b9b3147cadb0ec Mon Sep 17 00:00:00 2001 From: crschmidt Date: Thu, 26 Jun 2008 19:58:34 +0000 Subject: [PATCH] Add OpenAerialMap TMS usage example to spherical mercator layer, since it's been requested three times today from different places (!) git-svn-id: http://svn.openlayers.org/trunk/openlayers@7457 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- examples/spherical-mercator.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/examples/spherical-mercator.html b/examples/spherical-mercator.html index d64344c099..1206487c87 100644 --- a/examples/spherical-mercator.html +++ b/examples/spherical-mercator.html @@ -41,7 +41,7 @@ ); var gsat = new OpenLayers.Layer.Google( "Google Satellite", - {type: G_SATELLITE_MAP, 'sphericalMercator': true} + {type: G_SATELLITE_MAP, 'sphericalMercator': true, numZoomLevels: 22} ); var ghyb = new OpenLayers.Layer.Google( "Google Hybrid", @@ -86,6 +86,14 @@ attribution: 'OpenStreetMap' } ); + // create OSM layer + var mapnik = new OpenLayers.Layer.TMS( + "OpenAerialMap", + "http://tile.openaerialmap.org/tiles/1.0.0/openaerialmap-900913/", + { + type: 'png', getURL: osm_getTileURL + } + ); // create OSM layer var osmarender = new OpenLayers.Layer.TMS(