CliffCloud / Leaflet.EasyButton

leaflet control buttons with icons and callbacks
http://cliffcloud.github.io/Leaflet.EasyButton/v1/
MIT License
524 stars 123 forks source link

An error occurs with EasyButton when accessing. #112

Open MoonlightKOBE opened 2 months ago

MoonlightKOBE commented 2 months ago

I created a frontend app in Angular and deployed it to Tomcat 10, and the following error occurs with easyButton.

TypeError: be.easyButton is not a function at t.initMap (main-42XGJJIS.js:8:103583) at t. (main-42XGJJIS.js:8:102931) at Generator.next () at a (main-42XGJJIS.js:1:948) at f.invoke (polyfills-SCHOHYNV.js:1:6450) at Object.onInvoke (main-42XGJJIS.js:7:27412) at f.invoke (polyfills-SCHOHYNV.js:1:6390) at Y.run (polyfills-SCHOHYNV.js:1:1715) at polyfills-SCHOHYNV.js:2:553 at f.invokeTask (polyfills-SCHOHYNV.js:1:7075)

The versions are as follows: leaflet: 1.9.4 leaflet-easybutton: 2.4.0

You can find out the situation by visiting the following website: http://moonlightkobe.mydns.jp/Fltmap/MLKOBE

nhuttruong9920 commented 1 month ago

@MoonlightKOBE I had the same issue with nginx. Have you fixed it yet?