mpetazzoni / leaflet-gpx

A GPX track plugin for Leaflet.js
http://mpetazzoni.github.io/leaflet-gpx
BSD 2-Clause "Simplified" License
529 stars 114 forks source link

Compatibility with leaflet 1.5.1 #84

Closed sposs closed 4 years ago

sposs commented 4 years ago

I've tried implementing the example code, but I use leaflet 1.5.1. I get an error when

this.callInitHooks()

is called (not defined error) after this.initialize && this.initialize.apply(this, arguments). I'm not well versed in Javascript or in the internals of leaflet, so I'm open to any idea on how to solve that issue. My input is directly the proper GPX data.

sposs commented 4 years ago

My bad, I had missed the 'new' in front of L.GPX