change function name from ScreenPx to ViewPortPx
git-svn-id: http://svn.openlayers.org/trunk/openlayers@630 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -352,7 +352,7 @@ OpenLayers.Map.prototype = {
|
||||
getLonLatFromLayerPx: function (px) {
|
||||
//adjust for displacement of layerContainerDiv
|
||||
px = this.getScreenPxFromLayerPx(px);
|
||||
return this.getLonLatFromScreenPx(px);
|
||||
return this.getLonLatFromViewPortPx(px);
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -363,7 +363,7 @@ OpenLayers.Map.prototype = {
|
||||
* current extent and resolution
|
||||
* @type OpenLayers.LonLat
|
||||
*/
|
||||
getLonLatFromScreenPx: function (screenPx) {
|
||||
getLonLatFromViewPortPx: function (screenPx) {
|
||||
var center = this.getCenter(); //map center lon/lat
|
||||
var res = this.getResolution();
|
||||
var size = this.getSize();
|
||||
|
||||
Reference in New Issue
Block a user