Add/remove active class on map UI buttons

This commit is contained in:
John Firebaugh 2013-07-31 13:56:51 -07:00
parent a125ee829a
commit fa9b4a5f6a
5 changed files with 20 additions and 12 deletions

View file

@ -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() {