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

GPX not display #96

Closed louisJ20 closed 4 years ago

louisJ20 commented 4 years ago

Hello,

I encounter a problem with the plugin. When I start my html page, the gpx isn't display. What can i do ?

Thanks in advance.

mpetazzoni commented 4 years ago

Just saying "it doesn't work for me" isn't helpful. Can you share more information? Are there any errors in the JavaScript console? Can you share the HTML and JavaScript code you are trying to use?

davidof1977 commented 4 years ago

I have the same problem, i am using angular and the error in the console is

ERROR TypeError: leaflet__WEBPACK_IMPORTED_MODULE_1__.GPX is not a constructor at MapaComponent.initMap (mapa.component.ts:30) at MapaComponent.ngOnInit (mapa.component.ts:15) at callHook (core.js:4726) at callHooks (core.js:4690) at executeInitAndCheckHooks (core.js:4630) at refreshView (core.js:12013) at refreshComponent (core.js:13445) at refreshChildComponents (core.js:11716) at refreshView (core.js:12051) at renderComponentOrTemplate (core.js:12129)

This is my inex.html <!doctype html>

OrganizadorRutas