Update OpenLayers.Marker.moveTo apidoc

'px' parameter can be either a Pixel or a simple javascript object.
This commit is contained in:
fredj
2012-01-16 09:06:13 +01:00
parent 511784d530
commit 27a9ec26b0

View File

@@ -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)) {