Simple Leaflet control containing a FontAwesome button.
bower install https://github.com/FCOO/leaflet-control-fa-button.git --save
http://FCOO.github.io/leaflet-control-fa-button/demo/
var myFaButton = L.control.fontAwesomeButton( options );
Id | Default | Description |
---|---|---|
position |
"topleft" |
Leaflet position |
defaultContainerClassName |
"leaflet-bar leaflet-control-fa-button" |
Standard classes for the container |
containerClassName |
"" |
Extra class-name(s) for the container |
defaultIconClassName |
"fa fa-lg" |
Standard FontAwesome classes |
iconClassName |
"" |
The class defining the icon |
data |
"{}" |
data-attributes for the button |
title |
"" |
The title for the button |
href |
undefined |
Link to page |
onClick |
null |
function (evt, $button, options) The function to be called |
This plugin is licensed under the MIT license.
Copyright (c) 2015 FCOO
Jesper Larsen jla@fcoo.dk Niels Holt nho@fcoo.dk