We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 071b72c + 202fadb commit d811422Copy full SHA for d811422
directives/custom-marker.js
@@ -69,9 +69,9 @@
69
position && (this.position = position); /* jshint ignore:line */
70
71
if (this.getProjection() && typeof this.position.lng == 'function') {
72
- var posPixel = this.getProjection().fromLatLngToDivPixel(this.position);
73
var _this = this;
74
var setPosition = function() {
+ var posPixel = _this.getProjection().fromLatLngToDivPixel(_this.position);
75
var x = Math.round(posPixel.x - (_this.el.offsetWidth/2));
76
var y = Math.round(posPixel.y - _this.el.offsetHeight - 10); // 10px for anchor
77
_this.el.style.left = x + "px";
0 commit comments