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:
@@ -380,7 +380,7 @@
|
||||
|
||||
}
|
||||
|
||||
function test_tileExtent(t) {
|
||||
function test_tileOrigin(t) {
|
||||
t.plan(4);
|
||||
|
||||
var dummy = new OpenLayers.Layer(null, {isBaseLayer: true});
|
||||
@@ -392,7 +392,7 @@
|
||||
var constrained = new OpenLayers.Layer.WMS(
|
||||
null, "http://example.com/wms-c",
|
||||
{layers: "constrained"},
|
||||
{buffer: 0, isBaseLayer: false, tileExtent: new OpenLayers.Bounds(-180, -90, 180, 90)}
|
||||
{buffer: 0, isBaseLayer: false, tileOrigin: new OpenLayers.LonLat(-180, -90)}
|
||||
);
|
||||
var map = new OpenLayers.Map({
|
||||
div: "map",
|
||||
|
||||
Reference in New Issue
Block a user