marker doesnt have a this.div - it has a this.image
git-svn-id: http://svn.openlayers.org/trunk/openlayers@367 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -57,7 +57,7 @@ OpenLayers.Marker.prototype = {
|
|||||||
* @param {OpenLayers.Pixel} px
|
* @param {OpenLayers.Pixel} px
|
||||||
*/
|
*/
|
||||||
moveTo: function (px) {
|
moveTo: function (px) {
|
||||||
if ((px != null) && (this.div != null)) {
|
if ((px != null) && (this.image != null)) {
|
||||||
this.image.style.top = (px.y + this.icon.offset.y) + "px"
|
this.image.style.top = (px.y + this.icon.offset.y) + "px"
|
||||||
this.image.style.left = (px.x + this.icon.offset.x) + "px";
|
this.image.style.left = (px.x + this.icon.offset.x) + "px";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user