Adding support for a tileOrigin property to all gridded layers. If working with a cache of tiles that don't align with the bottom left corner of the layer's maxExtent property, set the layer's tileOrigin property. This change also removes the tileExtent property (not in any release), favoring tileOrigin as the way to determine how the grid is aligned. r=ahocevar (closes #3011).
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11033 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>OpenLayers Tile Extent Example</title>
|
||||
<title>OpenLayers Tile Origin Example</title>
|
||||
<link rel="stylesheet" href="../theme/default/style.css" type="text/css">
|
||||
<link rel="stylesheet" href="../theme/default/google.css" type="text/css">
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<body>
|
||||
<h1 id="title">Tile Extent</h1>
|
||||
<h1 id="title">Tile Origin</h1>
|
||||
<div id="tags">
|
||||
grid, tileExtent
|
||||
grid, tileOrigin
|
||||
</div>
|
||||
<p id="shortdesc">
|
||||
Demonstrates the use of the tileExtent property to differentiate
|
||||
@@ -23,14 +23,14 @@
|
||||
a particular tile lattice. In this case, the layer's
|
||||
<code>maxExtent</code> does not align with that tile lattice.
|
||||
To configure the layer with a tile extent that conforms to the
|
||||
tile extent configured on the server, use the layer's
|
||||
<code>tileExtent</code> property.
|
||||
tile origin configured on the server, use the layer's
|
||||
<code>tileOrigin</code> property.
|
||||
</p><p>
|
||||
View the <a href="tile-extent.js" target="_blank">tile-extent.js</a>
|
||||
View the <a href="tile-origin.js" target="_blank">tile-origin.js</a>
|
||||
source to see how this is done
|
||||
</p>
|
||||
</div>
|
||||
<script src="../lib/OpenLayers.js"></script>
|
||||
<script src="tile-extent.js"></script>
|
||||
<script src="tile-origin.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -8,7 +8,7 @@ var map = new OpenLayers.Map({
|
||||
"Global Imagery",
|
||||
"http://maps.opengeo.org/geowebcache/service/wms",
|
||||
{layers: "bluemarble"},
|
||||
{tileExtent: new OpenLayers.Bounds(-180, -90, 180, 90)}
|
||||
{tileOrigin: new OpenLayers.LonLat(-180, -90)}
|
||||
)
|
||||
],
|
||||
center: new OpenLayers.LonLat(-110, 45),
|
||||
Reference in New Issue
Block a user