Closed geomajor56 closed 7 years ago
See the Mapbox documentation about the URL format for their standalone markers: https://www.mapbox.com/api-documentation/#retrieve-a-standalone-marker
It'll be a URL that looks like https://api.mapbox.com/v4/marker/pin-s-park+3F9110@2x.png?access_token=your-access-token
.
Sorry to bother you but I'm having difficulty displaying an icon within a legend. I'm creating an icon as follows:
var greenTree = L.MakiMarkers.icon({ icon: "park", color: "3F9110", size: "s" });
This works fine as a map marker but I'm pretty much clueless displaying the var greenTree within a legend within a custom control panel using innerHTML:
Any help would be greatly appreciated. If I had the skills, I'd make some kind of plugin.