},
_createButton: function (html, title, className, container, fn, context) {
- var link = L.DomUtil.create('a', className, container);
+ var link = L.DomUtil.create('a', 'control-button ' + className, container);
link.innerHTML = html;
link.href = '#';
link.title = title;
/* Rules for Leaflet maps */
-.leaflet-control a {
+.leaflet-control .control-button {
display: block;
height: 40px;
width: 40px;
margin-bottom: 10px;
}
-.leaflet-control a.zoomin,
-.control-layers a,
-.control-note a {
+.leaflet-control .zoomin,
+.control-layers .control-button,
+.control-note .control-button {
margin-bottom: 0px;
border-radius: 4px 4px 0px 0px;
}
-.leaflet-control a.zoomout {
+.leaflet-control .zoomout {
margin-bottom: 0px;
border-radius: 0px;
}
-.control-locate a,
-.control-key a,
-.control-share a {
+.control-locate .control-button,
+.control-key .control-button,
+.control-share .control-button {
border-radius: 0px 0px 4px 4px;
}
-.leaflet-control a:hover {
+.leaflet-control .control-button:hover {
background-color: white;
}
-.leaflet-control a .icon {
+.leaflet-control .control-button .icon {
margin: 10px;
}