Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

marker.rotate: Allow icon anchor to be simple list

  • Loading branch information...
commit a864572aea6e299d1cd8ebe8425d481fdd60f536 1 parent b4d8e70
Pavel Shramov authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  layer/Marker.Rotate.js
View
2  layer/Marker.Rotate.js
@@ -14,7 +14,7 @@ L.Marker.include({
if (this.options.iconAngle) {
var a = this.options.icon.options.iconAnchor;
var s = this.options.icon.options.iconSize;
- a = L.point(s).divideBy(2)._subtract(a);
+ a = L.point(s).divideBy(2)._subtract(L.point(a));
var transform = '';
transform += ' translate(' + -a.x + 'px, ' + -a.y + 'px)';
transform += ' rotate(' + this.options.iconAngle + 'deg)';
Please sign in to comment.
Something went wrong with that request. Please try again.