again, change function name from ScreenPx to ViewPortPx
git-svn-id: http://svn.openlayers.org/trunk/openlayers@631 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -385,7 +385,7 @@ OpenLayers.Map.prototype = {
|
||||
*/
|
||||
getLayerPxFromLonLat: function (lonlat) {
|
||||
//adjust for displacement of layerContainerDiv
|
||||
var px = this.getScreenPxFromLonLat(lonlat);
|
||||
var px = this.getViewPortPxFromLonLat(lonlat);
|
||||
return this.getLayerPxFromScreenPx(px);
|
||||
},
|
||||
|
||||
@@ -397,7 +397,7 @@ OpenLayers.Map.prototype = {
|
||||
* and resolution
|
||||
* @type OpenLayers.Pixel
|
||||
*/
|
||||
getScreenPxFromLonLat: function (lonlat) {
|
||||
getViewPortPxFromLonLat: function (lonlat) {
|
||||
var resolution = this.getResolution();
|
||||
var extent = this.getExtent();
|
||||
return new OpenLayers.Pixel(
|
||||
|
||||
Reference in New Issue
Block a user