diff --git a/src/CategoryOverpass.js b/src/CategoryOverpass.js index b1187a7b..b16395a1 100644 --- a/src/CategoryOverpass.js +++ b/src/CategoryOverpass.js @@ -17,7 +17,7 @@ const showMore = require('./showMore') var defaultValues = { feature: { - title: "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) | default(trans('unnamed')) }}", + title: "{{ localizedTag(tags, 'name') |default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) }}", markerSign: '', 'style:selected': { color: '#3f3f3f', @@ -36,6 +36,7 @@ var defaultValues = { '{% if object.popupDescription or object.description %}
{{ object.popupDescription|default(object.description) }}
{% endif %}' + '{% if object.popupBody or object.body %}
{{ object.popupBody|default(object.body) }}
{% endif %}', list: + '' + '
' + '{% if object.listMarkerSymbol or object.markerSymbol %}' + '
{{ object.listMarkerSymbol|default(object.markerSymbol) }}
' + @@ -47,9 +48,10 @@ var defaultValues = { '{% endif %}' + '
' + '
' + - '{{ object.listTitle|default(object.title) }}' + '{% if object.listDescription or object.description %}
{{ object.listDescription|default(object.description) }}
{% endif %}' + - '
' + '{% if object.listTitle or object.title %}
{{ object.listTitle|default(object.title) }}
{% endif %}' + + '' + + '' }, queryOptions: { } diff --git a/style.css b/style.css index 00e01b75..55af0c43 100644 --- a/style.css +++ b/style.css @@ -416,3 +416,62 @@ a:active { clear: both; display: table; } + +ul.overpass-layer-list { + padding-left: 0; +} +ul.overpass-layer-list > li { + border: 1px solid #dfdfdf; + background: #dfdfdf; + border-radius: 5px; + border: 1px solid #afafaf; + padding: 2px; + margin-bottom: 2px; + display: flex; + flex-direction: row; +} +ul.overpass-layer-list > li:hover, +ul.overpass-layer-list > li.selected { + background: #cfcfcf !important; +} +ul.overpass-layer-list > li > a > .marker { + position: absolute; + margin-left: -35px; + width: 30px; + height: 30px; + text-align: center; + display: block; + color: black; + text-decoration: none; + margin-top: 3px; + flex-grow: 0; +} +ul.overpass-layer-list > li > a > .marker > .symbol { +} +ul.overpass-layer-list > li > a > .marker > .sign { + text-align: center; + position: absolute; + top: 3px; + font-size: 15px; + left: 0; + right: 0; + z-index: 1; + display: inline-block; +} +ul.overpass-layer-list > li > a > .content { + text-decoration: none; + display: block; +} +ul.overpass-layer-list > li > a > .content > .description { + display: block; + text-align: left; + font-style: normal; +} +ul.overpass-layer-list > li > a > .content > .title { + display: block; + font-style: italic; +} + +.leaflet-popup-content h1 .title { + font-style: italic; +}