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
|
* APIMethod: getLonLatFromViewPortPx
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* viewPortPx - {<OpenLayers.Pixel>}
|
* viewPortPx - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or
|
||||||
|
* an object with a 'x'
|
||||||
|
* and 'y' properties.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.LonLat>} An OpenLayers.LonLat which is the passed-in
|
* {<OpenLayers.LonLat>} An OpenLayers.LonLat which is the passed-in
|
||||||
@@ -1256,11 +1258,13 @@ OpenLayers.Layer = OpenLayers.Class({
|
|||||||
* fractional pixel values.
|
* fractional pixel values.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* lonlat - {<OpenLayers.LonLat>}
|
* lonlat - {<OpenLayers.LonLat>|Object} An OpenLayers.LonLat or
|
||||||
|
* an object with a 'lon'
|
||||||
|
* and 'lat' properties.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.Pixel>} An <OpenLayers.Pixel> which is the passed-in
|
* {<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) {
|
getViewPortPxFromLonLat: function (lonlat, resolution) {
|
||||||
var px = null;
|
var px = null;
|
||||||
|
|||||||
@@ -2345,7 +2345,9 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
* Method: getLonLatFromViewPortPx
|
* Method: getLonLatFromViewPortPx
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* viewPortPx - {<OpenLayers.Pixel>}
|
* viewPortPx - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or
|
||||||
|
* an object with a 'x'
|
||||||
|
* and 'y' properties.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.LonLat>} An OpenLayers.LonLat which is the passed-in view
|
* {<OpenLayers.LonLat>} An OpenLayers.LonLat which is the passed-in view
|
||||||
@@ -2388,7 +2390,8 @@ OpenLayers.Map = OpenLayers.Class({
|
|||||||
* APIMethod: getLonLatFromPixel
|
* APIMethod: getLonLatFromPixel
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* px - {<OpenLayers.Pixel>}
|
* px - {<OpenLayers.Pixel>|Object} An OpenLayers.Pixel or an object with
|
||||||
|
* a 'x' and 'y' properties.
|
||||||
*
|
*
|
||||||
* Returns:
|
* Returns:
|
||||||
* {<OpenLayers.LonLat>} An OpenLayers.LonLat corresponding to the given
|
* {<OpenLayers.LonLat>} An OpenLayers.LonLat corresponding to the given
|
||||||
|
|||||||
Reference in New Issue
Block a user