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:
@@ -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;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user