replace LonLat argument with simple object (Map.getLayerPxFromLonLat)
This commit is contained in:
@@ -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] = [];
|
||||
|
||||
Reference in New Issue
Block a user