Re:Leaflet: An open-source JavaScript library for mobile-fri...
by mourner on Monday December 05, 2016 @06:47AM
(#13104803)
If the icons don't work when you use Leaflet through NPM, please report a bug at https://github.com/Leaflet/Leaflet/issues. This is certainly not an expected behavior. It might have regressed in recent versions.
Re:Leaflet: An open-source JavaScript library for mobile-fri...
by abustamam on Monday December 05, 2016 @08:36PM
(#13111570)
I actually got it to work using DivIcons, but I felt it was kind of hacky (it was a div containing an image with a url to my marker).
Interestingly enough, the bug I was getting (can't seem to repro anymore) was already solved... by you! https://github.com/Leaflet/Leaflet/issues/766#issuecomment-7...
None of the fixes on that page worked, but using DivIcons did. If I can repro, I will definitely make an issue. Thanks!
Is there any plan to add NPM support anytime soon? I tried using the NPM library but icons did not work (got invalid path error) so I was forced to use div icons.
The leaflet/npm ecosystem goes out the window when you take into account plug-ins as well, As they require script tags.
Thanks for all your hard work!