replace LonLat argument with simple object (Map.getLayerPxFromLonLat)

This commit is contained in:
fredj
2011-12-09 10:13:11 +01:00
committed by Frederic Junod
parent 7a5b469192
commit 1df5cfa158
4 changed files with 17 additions and 10 deletions

View File

@@ -627,8 +627,10 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
center.lon + (tileWidth/2),
center.lat + (tileHeight/2));
var ul = new OpenLayers.LonLat(tileBounds.left, tileBounds.top);
var px = this.map.getLayerPxFromLonLat(ul);
var px = this.map.getLayerPxFromLonLat({
lon: tileBounds.left,
lat: tileBounds.top
});
if (!this.grid.length) {
this.grid[0] = [];