the same code is executed in moveTo(). might as well use it

git-svn-id: http://svn.openlayers.org/trunk/openlayers@368 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-25 17:22:31 +00:00
parent 935476dff5
commit 4392921aeb
+1 -2
View File
@@ -48,8 +48,7 @@ OpenLayers.Marker.prototype = {
* @type DOMElement * @type DOMElement
*/ */
draw: function(px) { draw: function(px) {
this.image.style.top = (px.y + this.icon.offset.y) + "px" this.moveTo(px);
this.image.style.left = (px.x + this.icon.offset.x) + "px";
return this.image; return this.image;
}, },