Skip to content

Commit

Permalink
kml: Call L.Icon._setIconStyle directly (fixes #21)
Browse files Browse the repository at this point in the history
  • Loading branch information
shramov committed Jun 20, 2012
1 parent d272cfb commit 7ec7fd2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions layer/vector/KML.js
Expand Up @@ -321,8 +321,7 @@ L.KMLIcon = L.Icon.extend({
},

_setIconStyles: function (img, name) {
var parent = Object.getPrototypeOf(this);
parent._setIconStyles(img, name);
L.Icon.prototype._setIconStyles.apply(this, [img, name])
// save anchor information to the image
img.anchor = this.options.iconAnchorRef;
img.anchorType = this.options.iconAnchorType;
Expand Down

0 comments on commit 7ec7fd2

Please sign in to comment.