Adding the tile extent examples as part of #3002.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11005 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2011-01-05 17:37:58 +00:00
parent 9e89f4f173
commit 52a105c3aa
2 changed files with 52 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
var map = new OpenLayers.Map({
div: "map",
maxExtent: new OpenLayers.Bounds(-130, 30, -80, 55),
maxResolution: 360 / 256 / Math.pow(2, 4),
numZoomLevels: 12,
layers: [
new OpenLayers.Layer.WMS(
"Global Imagery",
"http://maps.opengeo.org/geowebcache/service/wms",
{layers: "bluemarble"},
{tileExtent: new OpenLayers.Bounds(-180, -90, 180, 90)}
)
],
center: new OpenLayers.LonLat(-110, 45),
zoom: 0
});