Skip to content Skip to sidebar Skip to footer

Leaflet Awesome Marker Plugin Throwing Icon Not Defined Error

I am trying to use leafet-awesome markers plugin and using it like Awesome Markers Example: Basic &

Solution 1:

Your leaflet.awesome-markers script link is invalid:

<scriptsrc="https://github.com/lvoogdt/Leaflet.awesome-markers/blob/2.0/develop/dist/leaflet.awesome-markers.js"></script>

It refers to the github page of the script, not the raw source code. Replace it with a raw script file.

Script tag with a working CDN link:

<scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.0/leaflet.awesome-markers.min.js"></script>

Post a Comment for "Leaflet Awesome Marker Plugin Throwing Icon Not Defined Error"