summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--loleaflet/src/layer/AnnotationManager.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/loleaflet/src/layer/AnnotationManager.js b/loleaflet/src/layer/AnnotationManager.js
index 167960d33..66c2ec8aa 100644
--- a/loleaflet/src/layer/AnnotationManager.js
+++ b/loleaflet/src/layer/AnnotationManager.js
@@ -399,7 +399,7 @@ L.AnnotationManager = L.Class.extend({
},
add: function (comment) {
- var annotation = L.annotation(this._map.options.maxBounds.getSouthEast(), comment,
+ var annotation = L.annotation(this._map._docLayer._twipsToLatLng(comment.anchorPos.getTopRight()), comment,
comment.id === 'new' ? {noMenu: true} : {}).addTo(this._map);
if (comment.parent && comment.parent > '0') {
var parentIdx = this.getIndexOf(comment.parent);