Fix OpenLayers.Layer and OpenLayers.Map apidoc
'viewPortPx' parameter for OpenLayers.Layer.getLonLatFromViewPortPx can be either a Pixel or a simple javascript object. 'lonlat' parameter for OpenLayers.Layer.getViewPortPxFromLonLat can be either a LonLat or a simple javascript object. 'px' parameter for OpenLayers.Map.getLonLatFromViewPortPx and OpenLayers.Map.getLonLatFromPixel can be either a Pixel or a simple javascript object.
This commit is contained in:
@@ -1227,7 +1227,9 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
* APIMethod: getLonLatFromViewPortPx
|
||||
*
|
||||
* Parameters:
|
||||
* viewPortPx - {<OpenLayers.Pixel>}
|
||||
* viewPortPx - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or
|
||||
* an object with a 'x'
|
||||
* and 'y' properties.
|
||||
*
|
||||
* Returns:
|
||||
* {<OpenLayers.LonLat>} An OpenLayers.LonLat which is the passed-in
|
||||
@@ -1256,11 +1258,13 @@ OpenLayers.Layer = OpenLayers.Class({
|
||||
* fractional pixel values.
|
||||
*
|
||||
* Parameters:
|
||||
* lonlat - {<OpenLayers.LonLat>}
|
||||
* lonlat - {<OpenLayers.LonLat>|Object} An OpenLayers.LonLat or
|
||||
* an object with a 'lon'
|
||||
* and 'lat' properties.
|
||||
*
|
||||
* Returns:
|
||||
* {<OpenLayers.Pixel>} An <OpenLayers.Pixel> which is the passed-in
|
||||
* <OpenLayers.LonLat>,translated into view port pixels.
|
||||
* lonlat translated into view port pixels.
|
||||
*/
|
||||
getViewPortPxFromLonLat: function (lonlat, resolution) {
|
||||
var px = null;
|
||||
|
||||
Reference in New Issue
Block a user