Closed dczunigap closed 6 years ago
I added an option for customize icon. The option need the icon name from FontAwesome, for example: fa fa-map-signs
fa fa-map-signs
Then you should set the option like this: L.control.slideMenu('<p>test</p>', {icon: 'fa-map-signs', width: '200px'}).addTo(map);
L.control.slideMenu('<p>test</p>', {icon: 'fa-map-signs', width: '200px'}).addTo(map);
I added two methods and 1 new parameter for hide and show the icon menu.
var slideMenud = L.control.slideMenu('<p>test</p>', {icon: 'fa-map-signs', width: '200px', hidden: true}).addTo(map);
And when you want hide/show programatically, you can use: slideMenu.show() or slideMenu.hide()
slideMenu.show() or slideMenu.hide()
Thank you for pull request :)
I added an option for customize icon. The option need the icon name from FontAwesome, for example:
fa fa-map-signs
Then you should set the option like this:
L.control.slideMenu('<p>test</p>', {icon: 'fa-map-signs', width: '200px'}).addTo(map);
I added two methods and 1 new parameter for hide and show the icon menu.
var slideMenud = L.control.slideMenu('<p>test</p>', {icon: 'fa-map-signs', width: '200px', hidden: true}).addTo(map);
And when you want hide/show programatically, you can use:
slideMenu.show() or slideMenu.hide()