Closed ghost closed 6 years ago
I think I found solution something along the lines of:
import test from '../images/marker-icon.png'
L.easyButton({
position: 'bottomleft',
id: 'map-switcher-button',
states: [{ stateName: 'show-minimap',
icon: `<img src=${test} />`,
title: 'test',...
if you have better options, feel free to suggest.
you've got the right idea; that's the expected approach.
How can I add custom png icon to the button? I put a full path in the icon field as below but it doesn't seem to work. e.g.