Add/remove active class on map UI buttons
This commit is contained in:
parent
a125ee829a
commit
fa9b4a5f6a
5 changed files with 20 additions and 12 deletions
|
@ -10,7 +10,7 @@ L.OSM.share = function (options) {
|
|||
var $container = $('<div>')
|
||||
.attr('class', 'control-share');
|
||||
|
||||
$('<a>')
|
||||
var button = $('<a>')
|
||||
.attr('class', 'control-button')
|
||||
.attr('href', '#')
|
||||
.attr('title', 'Share')
|
||||
|
@ -230,7 +230,7 @@ L.OSM.share = function (options) {
|
|||
marker.setLatLng(map.getCenter());
|
||||
|
||||
update();
|
||||
options.sidebar.togglePane($ui);
|
||||
options.sidebar.togglePane($ui, button);
|
||||
}
|
||||
|
||||
function toggleMarker() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue