Merge pull request #137 from fredj/simple-objects
Replace Size and Pixel instances with simple objects. r=elemoine,probins,tschaub
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