I am trying to follow the JSFiddle example on the link : http://jsfiddle.net/BeniBoy/aeas62mh/1/
But I keep getting on error :
Uncaught TypeError: map._getNewTopLeftPoint is not a function
when I hover the sidebar or click onto the marker.
I am using pug and loading my script as
script(src='https://unpkg.com/leaflet@1.0.1/dist/leaflet.js')
on the header file.
This method was available until 0.7: https://github.com/Leaflet/Leaflet/blob/0.7/src/map/Map.js#L740
It has been removed in 1.0 (which is the version you are using).
Note that, because it starts with an underscore, it was considered as private and should not have been used in the first place.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.