diff --git a/css/style.css b/css/style.css index d90c841..59c0354 100644 --- a/css/style.css +++ b/css/style.css @@ -870,67 +870,71 @@ table.dataTable.display tbody tr:hover.selected { border-radius: 0; } - /** * Autocompleter styles */ -.leaflet-control-geocoder-form.stayvisible { display: inline-block; } -.leaflet-control-geocoder-alternatives{ - /* display: block; */ - position: absolute; - background-color: white; - left: 2rem; -} +.leaflet-control-geocoder-form.stayvisible { + display: inline-block; +} +.leaflet-control-geocoder-alternatives { + /* display: block; */ + position: absolute; + background-color: white; + left: 2rem; +} -.leaflet-control-geocoder-alternatives{ - background-color: rgb(255, 255, 255); +.leaflet-control-geocoder-alternatives { + background-color: rgb(255, 255, 255); } .autocomplete-container { - position:absolute; - left: 2rem; - width: calc( 100% - 3rem ); - z-index: 100; + position: absolute; + left: 2rem; + width: calc(100% - 3rem); + z-index: 100; } .autocomplete-select-container { - max-height: 15vh; - overflow-y: auto; + max-height: 15vh; + overflow-y: auto; } -.autocomplete-container .autocomplete-select button{ - text-align: left; - padding-left: 1rem; - padding-right: 1rem; - width: 100%; +.autocomplete-container .autocomplete-select button { + text-align: left; + padding-left: 1rem; + padding-right: 1rem; + width: 100%; } #search-fav-menu-toggle { - text-align: right; - padding-right: 2rem; - line-height: 100%; - cursor: pointer; + text-align: right; + padding-right: 2rem; + line-height: 100%; + cursor: pointer; } #search-fav-menu-toggle > span { - font-weight: bold; - line-height: 0; - font-size: 1.2rem; + font-weight: bold; + line-height: 0; + font-size: 1.2rem; } -.autocomplete-container.filtered .autocomplete-select button{ display: none; } -.autocomplete-container.filtered .autocomplete-select button.match{ display: inherit; } +.autocomplete-container.filtered .autocomplete-select button { + display: none; +} +.autocomplete-container.filtered .autocomplete-select button.match { + display: inherit; +} @media (max-width: 320.98px) { - .leaflet-control-geocoder-form > input[type=text] { - max-width: 50vw; - } - - .leaflet-control-geocoder-alternatives { - max-width: 65vw; - } -} + .leaflet-control-geocoder-form > input[type='text'] { + max-width: 50vw; + } + .leaflet-control-geocoder-alternatives { + max-width: 65vw; + } +} @media (max-width: 575.98px) { .modal-fullscreen-sm-down { diff --git a/js/LayersConfig.js b/js/LayersConfig.js index 7c41726..e8ebbc2 100644 --- a/js/LayersConfig.js +++ b/js/LayersConfig.js @@ -213,8 +213,7 @@ BR.LayersConfig = L.Class.extend({ minZoom: 12, feature: { title: '{{ tags.name }}', - body: - '{% for k, v in tags %}{% if k[:5] != "addr:" %}{% endif %}{% endfor %}
{{ k }}{% if k matches "/email/" %}{{ v }}{% elseif v matches "/^http/" %}{{ v }}{% elseif v matches "/^www/" %}{{ v }}{% else %}{{ v }}{% endif %}
', + body: '{% for k, v in tags %}{% if k[:5] != "addr:" %}{% endif %}{% endfor %}
{{ k }}{% if k matches "/email/" %}{{ v }}{% elseif v matches "/^http/" %}{{ v }}{% elseif v matches "/^www/" %}{{ v }}{% else %}{{ v }}{% endif %}
', markerSymbol: '', markerSign, diff --git a/js/plugin/NogoAreas.js b/js/plugin/NogoAreas.js index dec430a..ac235ba 100644 --- a/js/plugin/NogoAreas.js +++ b/js/plugin/NogoAreas.js @@ -55,12 +55,15 @@ BR.NogoAreas = L.Control.extend({ e.layer.toggleEdit(); }); - var editTools = (this.editTools = map.editTools = new BR.Editable(map, { - circleEditorClass: BR.DeletableCircleEditor, - // FeatureGroup instead of LayerGroup to propagate events to members - editLayer: new L.FeatureGroup().addTo(map), - featuresLayer: this.drawnItems, - })); + var editTools = + (this.editTools = + map.editTools = + new BR.Editable(map, { + circleEditorClass: BR.DeletableCircleEditor, + // FeatureGroup instead of LayerGroup to propagate events to members + editLayer: new L.FeatureGroup().addTo(map), + featuresLayer: this.drawnItems, + })); this.startDrawing = function (control) { // initial radius of 0 to detect click, see DeletableCircleEditor.onDrawingMouseUp