Skip to content

Commit

Permalink
Set the right position of a marker on first load.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorrit committed Mar 9, 2015
1 parent b369afc commit ab4dc15
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jvm.Marker = function(config){
y: this.labelY
}, config.labelStyle, config.labelsGroup);

this.updateLabelPosition();
this.label.addClass('jvectormap-marker jvectormap-element');
}
};
Expand Down Expand Up @@ -73,4 +74,4 @@ jvm.Marker.prototype.setStyle = function(property, value){
this.config.style = jvm.$.extend(true, {}, this.shape.style);
this.createShape();
}
};
};

0 comments on commit ab4dc15

Please sign in to comment.