jseppi / Leaflet.MakiMarkers

Leaflet plugin to create map icons using Maki Icons from Mapbox.
MIT License
140 stars 39 forks source link

Use Mapbox API v4 #9

Closed jseppi closed 8 years ago

jseppi commented 8 years ago

The previously used v3 API is deprecated. This switches Leaflet.MakiMarkers to use the newer v4 API. Unfortunately v4 requires a valid Mapbox API token with every request. Version 2.0.0 of Leaflet.MakiMarkers allows the developer to specify an accessToken via L.MakiMarkers.accessToken or with each icon as part of the config object in the L.MakiMarkers.icon(confg) constructor.