mukil / Leaflet.annotate

A Leaflet plugin integrating schema.org to markup items in your geographic web map machine readable.
http://mukil.github.io/Leaflet.annotate/
BSD 2-Clause "Simplified" License
10 stars 5 forks source link

An annotated Popup displayed at wrong position after map zoom #1

Closed mukil closed 8 years ago

mukil commented 8 years ago

An internal leaflet code does not seem to select the corresponding div element by className but by assuming that the element to transform is always a first-level child of the leaflet-popup-pane.

At first sight, two simple solutions might do the trick (give Popup correct position on map after zooms):

We'll see which way we go and may be there is another solution.

mukil commented 8 years ago

This bug was introduce by ourselves in line 98 in the attempt to patch removal of elements from map. DOM Removal of annotated Marker and Popup elements is now properly (wrapped). Subsequently these elements appear in position on map also after receiving an update (e.g. zooming).