masajid390 / BeautifyMarker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom font icons support

opened this issue · comments

Is there a way to support others font icons libraries?
Like material IO, SVG icons, or any custom font icon library?

I have updated the plugin to support custom marker, let's take material IO example:

var options = {
html: "<i class="material-icons">face</i>",
iconAnchor: [11, 10]
};
L.marker([33.89093747081252, 72.9107666015625], { icon: L.BeautifyIcon.icon(options), draggable: true }).addTo(map).bindPopup("I'm Beautify");

You have you set iconAnchor or other icons property as per in http://leafletjs.com/reference-1.2.0.html#icon