replace Pixel argument with simple object (Map.getLonLatFromViewPortPx)
This commit is contained in:
@@ -1517,9 +1517,10 @@ OpenLayers.Map = OpenLayers.Class({
|
||||
*/
|
||||
getCachedCenter: function() {
|
||||
if (!this.center && this.size) {
|
||||
this.center = this.getLonLatFromViewPortPx(
|
||||
new OpenLayers.Pixel(this.size.w / 2, this.size.h / 2)
|
||||
);
|
||||
this.center = this.getLonLatFromViewPortPx({
|
||||
x: this.size.w / 2,
|
||||
y: this.size.h / 2
|
||||
});
|
||||
}
|
||||
return this.center;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user