-
-
+
+
+
+
-
-
-
- Layers
- - -
-
-
-
-
diff --git a/js/index.js b/js/index.js
index da648b6..354e44c 100644
--- a/js/index.js
+++ b/js/index.js
@@ -219,7 +219,7 @@
trackMessages.onAdd(map);
- sidebar = BR.sidebar('sidebar', {
+ sidebar = BR.sidebar({
listeningTabs: {
'tab_data': trackMessages
}
diff --git a/js/plugin/Sidebar.js b/js/plugin/Sidebar.js
index 9abff85..257f359 100644
--- a/js/plugin/Sidebar.js
+++ b/js/plugin/Sidebar.js
@@ -3,6 +3,9 @@ BR.Sidebar = L.Control.Sidebar.extend({
options: {
position: 'right',
+ container: 'sidebar',
+ tabContainer: 'sidebarTabs',
+ autopan: false,
// Tabs to be notified when shown or hidden
// (tab div id -> object implementing show/hide methods)
@@ -23,6 +26,11 @@ BR.Sidebar = L.Control.Sidebar.extend({
this._rememberTabState();
+ if (L.Browser.touch && BR.Browser.touchScreenDetectable && !BR.Browser.touchScreen) {
+ L.DomUtil.removeClass(this._container, 'leaflet-touch');
+ L.DomUtil.removeClass(this._tabContainer, 'leaflet-touch');
+ }
+
return this;
},
