Run prettier after update
This commit is contained in:
parent
1f8fed4d6c
commit
89d9e8763a
3 changed files with 52 additions and 46 deletions
|
|
@ -870,67 +870,71 @@ table.dataTable.display tbody tr:hover.selected {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Autocompleter styles
|
* Autocompleter styles
|
||||||
*/
|
*/
|
||||||
.leaflet-control-geocoder-form.stayvisible { display: inline-block; }
|
.leaflet-control-geocoder-form.stayvisible {
|
||||||
.leaflet-control-geocoder-alternatives{
|
display: inline-block;
|
||||||
/* display: block; */
|
}
|
||||||
position: absolute;
|
.leaflet-control-geocoder-alternatives {
|
||||||
background-color: white;
|
/* display: block; */
|
||||||
left: 2rem;
|
position: absolute;
|
||||||
}
|
background-color: white;
|
||||||
|
left: 2rem;
|
||||||
|
}
|
||||||
|
|
||||||
.leaflet-control-geocoder-alternatives{
|
.leaflet-control-geocoder-alternatives {
|
||||||
background-color: rgb(255, 255, 255);
|
background-color: rgb(255, 255, 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
.autocomplete-container {
|
.autocomplete-container {
|
||||||
position:absolute;
|
position: absolute;
|
||||||
left: 2rem;
|
left: 2rem;
|
||||||
width: calc( 100% - 3rem );
|
width: calc(100% - 3rem);
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
|
|
||||||
.autocomplete-select-container {
|
.autocomplete-select-container {
|
||||||
max-height: 15vh;
|
max-height: 15vh;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.autocomplete-container .autocomplete-select button{
|
.autocomplete-container .autocomplete-select button {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
padding-left: 1rem;
|
padding-left: 1rem;
|
||||||
padding-right: 1rem;
|
padding-right: 1rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-fav-menu-toggle {
|
#search-fav-menu-toggle {
|
||||||
text-align: right;
|
text-align: right;
|
||||||
padding-right: 2rem;
|
padding-right: 2rem;
|
||||||
line-height: 100%;
|
line-height: 100%;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
#search-fav-menu-toggle > span {
|
#search-fav-menu-toggle > span {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 0;
|
line-height: 0;
|
||||||
font-size: 1.2rem;
|
font-size: 1.2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.autocomplete-container.filtered .autocomplete-select button{ display: none; }
|
.autocomplete-container.filtered .autocomplete-select button {
|
||||||
.autocomplete-container.filtered .autocomplete-select button.match{ display: inherit; }
|
display: none;
|
||||||
|
}
|
||||||
|
.autocomplete-container.filtered .autocomplete-select button.match {
|
||||||
|
display: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 320.98px) {
|
@media (max-width: 320.98px) {
|
||||||
.leaflet-control-geocoder-form > input[type=text] {
|
.leaflet-control-geocoder-form > input[type='text'] {
|
||||||
max-width: 50vw;
|
max-width: 50vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
.leaflet-control-geocoder-alternatives {
|
|
||||||
max-width: 65vw;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
.leaflet-control-geocoder-alternatives {
|
||||||
|
max-width: 65vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: 575.98px) {
|
@media (max-width: 575.98px) {
|
||||||
.modal-fullscreen-sm-down {
|
.modal-fullscreen-sm-down {
|
||||||
|
|
|
||||||
|
|
@ -213,8 +213,7 @@ BR.LayersConfig = L.Class.extend({
|
||||||
minZoom: 12,
|
minZoom: 12,
|
||||||
feature: {
|
feature: {
|
||||||
title: '{{ tags.name }}',
|
title: '{{ tags.name }}',
|
||||||
body:
|
body: '<table class="overpass-tags">{% for k, v in tags %}{% if k[:5] != "addr:" %}<tr><th>{{ k }}</th><td>{% if k matches "/email/" %}<a href="mailto:{{ v }}">{{ v }}</a>{% elseif v matches "/^http/" %}<a href="{{ v }}">{{ v }}</a>{% elseif v matches "/^www/" %}<a href="http://{{ v }}">{{ v }}</a>{% else %}{{ v }}{% endif %}</td></tr>{% endif %}{% endfor %}</table>',
|
||||||
'<table class="overpass-tags">{% for k, v in tags %}{% if k[:5] != "addr:" %}<tr><th>{{ k }}</th><td>{% if k matches "/email/" %}<a href="mailto:{{ v }}">{{ v }}</a>{% elseif v matches "/^http/" %}<a href="{{ v }}">{{ v }}</a>{% elseif v matches "/^www/" %}<a href="http://{{ v }}">{{ v }}</a>{% else %}{{ v }}{% endif %}</td></tr>{% endif %}{% endfor %}</table>',
|
|
||||||
markerSymbol:
|
markerSymbol:
|
||||||
'<svg width="25px" height="41px" anchorX="12" anchorY="41" viewBox="0 0 32 52" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M16,1 C7.7146,1 1,7.65636364 1,15.8648485 C1,24.0760606 16,51 16,51 C16,51 31,24.0760606 31,15.8648485 C31,7.65636364 24.2815,1 16,1 L16,1 Z" fill="#436978"></path></svg>',
|
'<svg width="25px" height="41px" anchorX="12" anchorY="41" viewBox="0 0 32 52" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M16,1 C7.7146,1 1,7.65636364 1,15.8648485 C1,24.0760606 16,51 16,51 C16,51 31,24.0760606 31,15.8648485 C31,7.65636364 24.2815,1 16,1 L16,1 Z" fill="#436978"></path></svg>',
|
||||||
markerSign,
|
markerSign,
|
||||||
|
|
|
||||||
|
|
@ -55,12 +55,15 @@ BR.NogoAreas = L.Control.extend({
|
||||||
e.layer.toggleEdit();
|
e.layer.toggleEdit();
|
||||||
});
|
});
|
||||||
|
|
||||||
var editTools = (this.editTools = map.editTools = new BR.Editable(map, {
|
var editTools =
|
||||||
circleEditorClass: BR.DeletableCircleEditor,
|
(this.editTools =
|
||||||
// FeatureGroup instead of LayerGroup to propagate events to members
|
map.editTools =
|
||||||
editLayer: new L.FeatureGroup().addTo(map),
|
new BR.Editable(map, {
|
||||||
featuresLayer: this.drawnItems,
|
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) {
|
this.startDrawing = function (control) {
|
||||||
// initial radius of 0 to detect click, see DeletableCircleEditor.onDrawingMouseUp
|
// initial radius of 0 to detect click, see DeletableCircleEditor.onDrawingMouseUp
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue