From 27a9ec26b026b09f96045f171fac54ac88ee1ac4 Mon Sep 17 00:00:00 2001 From: fredj Date: Mon, 16 Jan 2012 09:06:13 +0100 Subject: [PATCH] Update OpenLayers.Marker.moveTo apidoc 'px' parameter can be either a Pixel or a simple javascript object. --- lib/OpenLayers/Marker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/OpenLayers/Marker.js b/lib/OpenLayers/Marker.js index dbb44a86da..7a681d3c9c 100644 --- a/lib/OpenLayers/Marker.js +++ b/lib/OpenLayers/Marker.js @@ -135,7 +135,8 @@ OpenLayers.Marker = OpenLayers.Class({ * Move the marker to the new location. * * Parameters: - * px - {} the pixel position to move to + * px - {|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)) {