Update OpenLayers.Marker.moveTo apidoc
'px' parameter can be either a Pixel or a simple javascript object.
This commit is contained in:
@@ -135,7 +135,8 @@ OpenLayers.Marker = OpenLayers.Class({
|
||||
* Move the marker to the new location.
|
||||
*
|
||||
* Parameters:
|
||||
* px - {<OpenLayers.Pixel>} the pixel position to move to
|
||||
* px - {<OpenLayers.Pixel>|Object} the pixel position to move to.
|
||||
* An OpenLayers.Pixel or an object with a 'x' and 'y' properties.
|
||||
*/
|
||||
moveTo: function (px) {
|
||||
if ((px != null) && (this.icon != null)) {
|
||||
|
||||
Reference in New Issue
Block a user