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

@@ -164,8 +164,10 @@ OpenLayers.Layer.Image = OpenLayers.Class(OpenLayers.Layer, {
this.setTileSize();
//determine new position (upper left corner of new bounds)
var ul = new OpenLayers.LonLat(this.extent.left, this.extent.top);
var ulPx = this.map.getLayerPxFromLonLat(ul);
var ulPx = this.map.getLayerPxFromLonLat({
lon: this.extent.left,
lat: this.extent.top
});
if(firstRendering) {
//create the new tile