From 7e97972073430f76a31489b5488223588c21935b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sat, 26 Sep 2020 11:33:08 +0200 Subject: [PATCH] CategoryOverpass: override layouts (with the original values) --- src/CategoryOverpass.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/CategoryOverpass.js b/src/CategoryOverpass.js index 24454825..df655c2d 100644 --- a/src/CategoryOverpass.js +++ b/src/CategoryOverpass.js @@ -30,6 +30,15 @@ var defaultValues = { listMarkerSymbol: '{{ markerCircle({})|raw }}', preferredZoom: 16 }, + layouts: { + popup: + '

{{ object.popupTitle|default(object.title) }}

' + + '{% 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: + '{{ object.listTitle|default(object.title) }}' + + '{% if object.listDescription or object.description %}
{{ object.listDescription|default(object.description) }}
{% endif %}' + }, queryOptions: { } }