Stephan Bösch-Plepelits
6 years ago
7 changed files with 772 additions and 2 deletions
-
154blue-dot.json
-
2blue.json
-
154current-dot.json
-
154current-greycircle.json
-
154current-greydot.json
-
154darkred-dot.json
-
2darkred.json
@ -0,0 +1,154 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Blue Dot" |
|||
}, |
|||
"query": { |
|||
"11": [ |
|||
"(", |
|||
"node[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
"way[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
"relation[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
")" |
|||
], |
|||
"14": [ |
|||
"(", |
|||
"node[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
"way[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
"relation[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"description": "{{ tagTransList('historic', tags.historic) }}", |
|||
"body": [ |
|||
"<ul>", |
|||
"{% if tags.inscription %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('inscription') }}:</span>", |
|||
" <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>", |
|||
" </li>", |
|||
"{% elseif attribute(tags, 'inscription:url') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>", |
|||
" </li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'historic:civilization') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-users\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('historic:civilization') }}:</span>", |
|||
" <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>", |
|||
" </li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'memorial:conflict') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>", |
|||
" <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>", |
|||
" </li>", |
|||
"{% endif %}" |
|||
], |
|||
"markerSign": "{{ const[tags.historic].sign|raw }}", |
|||
"markerSymbol": "{{ markerPointer({'fillColor':'#3388ff'})|raw }}", |
|||
"listMarkerSymbol": "{{ markerCircle({'fillColor':'#3388ff'})|raw }}", |
|||
"style": { |
|||
"width": 3, |
|||
"color": "#3388ff", |
|||
"radius": 2 |
|||
} |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for value, data in const %}", |
|||
"{% if data.zoom <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", |
|||
" <td>{{ tagTrans('historic', value) }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"{% if 14 <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>", |
|||
" <td>{{ trans('other') }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"archaeological_site": { |
|||
"sign": "<i class=\"fas fa-archway\"></i>", |
|||
"zoom": 11 |
|||
}, |
|||
"battlefield": { |
|||
"sign": "⚔️", |
|||
"zoom": 11 |
|||
}, |
|||
"castle": { |
|||
"sign": "<img data-src='maki:castle'>", |
|||
"zoom": 11 |
|||
}, |
|||
"building": { |
|||
"sign": "<img data-src='maki:building'>", |
|||
"zoom": 14 |
|||
}, |
|||
"aircraft": { |
|||
"sign": "<img data-src='maki:airport'>", |
|||
"zoom": 14 |
|||
}, |
|||
"ruins": { |
|||
"sign": "<img data-src='temaki:ruins'>", |
|||
"zoom": 14 |
|||
} |
|||
}, |
|||
"filter": { |
|||
"type": { |
|||
"key": "historic", |
|||
"show_default": "true", |
|||
"name": "{{ trans('filter:type') }}", |
|||
"type": "select", |
|||
"values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('historic', t) }}</option>{% endfor %}<option value='other' query='nwr[historic][historic!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>", |
|||
"valueName": "{{ tagTrans('historic', value) }}" |
|||
}, |
|||
"conflict": { |
|||
"key": "memorial:conflict", |
|||
"op": "has", |
|||
"name": "{{ keyTrans('memorial:conflict') }}", |
|||
"type": "select", |
|||
"values": [ |
|||
"WW1", |
|||
"WW2" |
|||
], |
|||
"valueName": "{{ tagTrans('memorial:conflict', value) }}" |
|||
}, |
|||
"civilization": { |
|||
"key": "historic:civilization", |
|||
"op": "has", |
|||
"name": "{{ keyTrans('historic:civilization') }}", |
|||
"type": "select", |
|||
"values": [ |
|||
"ancient_egyptian", |
|||
"ancient_greek", |
|||
"ancient_roman", |
|||
"byzantine", |
|||
"celtic", |
|||
"etruscan", |
|||
"imperial_chinese", |
|||
"korean", |
|||
"medieval", |
|||
"modern", |
|||
"neolithic", |
|||
"nuragic", |
|||
"ottoman", |
|||
"prehistoric", |
|||
"roman", |
|||
"western_roman" |
|||
], |
|||
"valueName": "{{ tagTrans('historic:civilization', value) }}" |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,154 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Current + Dot" |
|||
}, |
|||
"query": { |
|||
"11": [ |
|||
"(", |
|||
"node[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
"way[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
"relation[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
")" |
|||
], |
|||
"14": [ |
|||
"(", |
|||
"node[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
"way[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
"relation[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"description": "{{ tagTransList('historic', tags.historic) }}", |
|||
"body": [ |
|||
"<ul>", |
|||
"{% if tags.inscription %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('inscription') }}:</span>", |
|||
" <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>", |
|||
" </li>", |
|||
"{% elseif attribute(tags, 'inscription:url') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>", |
|||
" </li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'historic:civilization') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-users\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('historic:civilization') }}:</span>", |
|||
" <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>", |
|||
" </li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'memorial:conflict') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>", |
|||
" <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>", |
|||
" </li>", |
|||
"{% endif %}" |
|||
], |
|||
"markerSign": "{{ const[tags.historic].sign|raw }}", |
|||
"markerSymbol": "{{ markerPointer({'fillColor':'#f2756a'})|raw }}", |
|||
"listMarkerSymbol": "{{ markerCircle({'fillColor':'#f2756a'})|raw }}", |
|||
"style": { |
|||
"width": 3, |
|||
"color": "#3388ff", |
|||
"radius": 2 |
|||
} |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for value, data in const %}", |
|||
"{% if data.zoom <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", |
|||
" <td>{{ tagTrans('historic', value) }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"{% if 14 <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>", |
|||
" <td>{{ trans('other') }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"archaeological_site": { |
|||
"sign": "<i class=\"fas fa-archway\"></i>", |
|||
"zoom": 11 |
|||
}, |
|||
"battlefield": { |
|||
"sign": "⚔️", |
|||
"zoom": 11 |
|||
}, |
|||
"castle": { |
|||
"sign": "<img data-src='maki:castle'>", |
|||
"zoom": 11 |
|||
}, |
|||
"building": { |
|||
"sign": "<img data-src='maki:building'>", |
|||
"zoom": 14 |
|||
}, |
|||
"aircraft": { |
|||
"sign": "<img data-src='maki:airport'>", |
|||
"zoom": 14 |
|||
}, |
|||
"ruins": { |
|||
"sign": "<img data-src='temaki:ruins'>", |
|||
"zoom": 14 |
|||
} |
|||
}, |
|||
"filter": { |
|||
"type": { |
|||
"key": "historic", |
|||
"show_default": "true", |
|||
"name": "{{ trans('filter:type') }}", |
|||
"type": "select", |
|||
"values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('historic', t) }}</option>{% endfor %}<option value='other' query='nwr[historic][historic!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>", |
|||
"valueName": "{{ tagTrans('historic', value) }}" |
|||
}, |
|||
"conflict": { |
|||
"key": "memorial:conflict", |
|||
"op": "has", |
|||
"name": "{{ keyTrans('memorial:conflict') }}", |
|||
"type": "select", |
|||
"values": [ |
|||
"WW1", |
|||
"WW2" |
|||
], |
|||
"valueName": "{{ tagTrans('memorial:conflict', value) }}" |
|||
}, |
|||
"civilization": { |
|||
"key": "historic:civilization", |
|||
"op": "has", |
|||
"name": "{{ keyTrans('historic:civilization') }}", |
|||
"type": "select", |
|||
"values": [ |
|||
"ancient_egyptian", |
|||
"ancient_greek", |
|||
"ancient_roman", |
|||
"byzantine", |
|||
"celtic", |
|||
"etruscan", |
|||
"imperial_chinese", |
|||
"korean", |
|||
"medieval", |
|||
"modern", |
|||
"neolithic", |
|||
"nuragic", |
|||
"ottoman", |
|||
"prehistoric", |
|||
"roman", |
|||
"western_roman" |
|||
], |
|||
"valueName": "{{ tagTrans('historic:civilization', value) }}" |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,154 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Current + Grey Circle" |
|||
}, |
|||
"query": { |
|||
"11": [ |
|||
"(", |
|||
"node[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
"way[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
"relation[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
")" |
|||
], |
|||
"14": [ |
|||
"(", |
|||
"node[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
"way[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
"relation[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"description": "{{ tagTransList('historic', tags.historic) }}", |
|||
"body": [ |
|||
"<ul>", |
|||
"{% if tags.inscription %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('inscription') }}:</span>", |
|||
" <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>", |
|||
" </li>", |
|||
"{% elseif attribute(tags, 'inscription:url') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>", |
|||
" </li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'historic:civilization') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-users\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('historic:civilization') }}:</span>", |
|||
" <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>", |
|||
" </li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'memorial:conflict') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>", |
|||
" <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>", |
|||
" </li>", |
|||
"{% endif %}" |
|||
], |
|||
"markerSign": "{{ const[tags.historic].sign|raw }}", |
|||
"markerSymbol": "{{ markerPointer({'fillColor':'#f2756a'})|raw }}", |
|||
"listMarkerSymbol": "{{ markerCircle({'fillColor':'#f2756a'})|raw }}", |
|||
"style": { |
|||
"width": 3, |
|||
"color": "#7f7f7f", |
|||
"radius": 10 |
|||
} |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for value, data in const %}", |
|||
"{% if data.zoom <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", |
|||
" <td>{{ tagTrans('historic', value) }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"{% if 14 <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>", |
|||
" <td>{{ trans('other') }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"archaeological_site": { |
|||
"sign": "<i class=\"fas fa-archway\"></i>", |
|||
"zoom": 11 |
|||
}, |
|||
"battlefield": { |
|||
"sign": "⚔️", |
|||
"zoom": 11 |
|||
}, |
|||
"castle": { |
|||
"sign": "<img data-src='maki:castle'>", |
|||
"zoom": 11 |
|||
}, |
|||
"building": { |
|||
"sign": "<img data-src='maki:building'>", |
|||
"zoom": 14 |
|||
}, |
|||
"aircraft": { |
|||
"sign": "<img data-src='maki:airport'>", |
|||
"zoom": 14 |
|||
}, |
|||
"ruins": { |
|||
"sign": "<img data-src='temaki:ruins'>", |
|||
"zoom": 14 |
|||
} |
|||
}, |
|||
"filter": { |
|||
"type": { |
|||
"key": "historic", |
|||
"show_default": "true", |
|||
"name": "{{ trans('filter:type') }}", |
|||
"type": "select", |
|||
"values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('historic', t) }}</option>{% endfor %}<option value='other' query='nwr[historic][historic!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>", |
|||
"valueName": "{{ tagTrans('historic', value) }}" |
|||
}, |
|||
"conflict": { |
|||
"key": "memorial:conflict", |
|||
"op": "has", |
|||
"name": "{{ keyTrans('memorial:conflict') }}", |
|||
"type": "select", |
|||
"values": [ |
|||
"WW1", |
|||
"WW2" |
|||
], |
|||
"valueName": "{{ tagTrans('memorial:conflict', value) }}" |
|||
}, |
|||
"civilization": { |
|||
"key": "historic:civilization", |
|||
"op": "has", |
|||
"name": "{{ keyTrans('historic:civilization') }}", |
|||
"type": "select", |
|||
"values": [ |
|||
"ancient_egyptian", |
|||
"ancient_greek", |
|||
"ancient_roman", |
|||
"byzantine", |
|||
"celtic", |
|||
"etruscan", |
|||
"imperial_chinese", |
|||
"korean", |
|||
"medieval", |
|||
"modern", |
|||
"neolithic", |
|||
"nuragic", |
|||
"ottoman", |
|||
"prehistoric", |
|||
"roman", |
|||
"western_roman" |
|||
], |
|||
"valueName": "{{ tagTrans('historic:civilization', value) }}" |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,154 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Current + Grey Dot" |
|||
}, |
|||
"query": { |
|||
"11": [ |
|||
"(", |
|||
"node[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
"way[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
"relation[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
")" |
|||
], |
|||
"14": [ |
|||
"(", |
|||
"node[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
"way[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
"relation[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"description": "{{ tagTransList('historic', tags.historic) }}", |
|||
"body": [ |
|||
"<ul>", |
|||
"{% if tags.inscription %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('inscription') }}:</span>", |
|||
" <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>", |
|||
" </li>", |
|||
"{% elseif attribute(tags, 'inscription:url') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>", |
|||
" </li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'historic:civilization') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-users\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('historic:civilization') }}:</span>", |
|||
" <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>", |
|||
" </li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'memorial:conflict') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>", |
|||
" <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>", |
|||
" </li>", |
|||
"{% endif %}" |
|||
], |
|||
"markerSign": "{{ const[tags.historic].sign|raw }}", |
|||
"markerSymbol": "{{ markerPointer({'fillColor':'#f2756a'})|raw }}", |
|||
"listMarkerSymbol": "{{ markerCircle({'fillColor':'#f2756a'})|raw }}", |
|||
"style": { |
|||
"width": 3, |
|||
"color": "#7f7f7f", |
|||
"radius": 2 |
|||
} |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for value, data in const %}", |
|||
"{% if data.zoom <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", |
|||
" <td>{{ tagTrans('historic', value) }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"{% if 14 <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>", |
|||
" <td>{{ trans('other') }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"archaeological_site": { |
|||
"sign": "<i class=\"fas fa-archway\"></i>", |
|||
"zoom": 11 |
|||
}, |
|||
"battlefield": { |
|||
"sign": "⚔️", |
|||
"zoom": 11 |
|||
}, |
|||
"castle": { |
|||
"sign": "<img data-src='maki:castle'>", |
|||
"zoom": 11 |
|||
}, |
|||
"building": { |
|||
"sign": "<img data-src='maki:building'>", |
|||
"zoom": 14 |
|||
}, |
|||
"aircraft": { |
|||
"sign": "<img data-src='maki:airport'>", |
|||
"zoom": 14 |
|||
}, |
|||
"ruins": { |
|||
"sign": "<img data-src='temaki:ruins'>", |
|||
"zoom": 14 |
|||
} |
|||
}, |
|||
"filter": { |
|||
"type": { |
|||
"key": "historic", |
|||
"show_default": "true", |
|||
"name": "{{ trans('filter:type') }}", |
|||
"type": "select", |
|||
"values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('historic', t) }}</option>{% endfor %}<option value='other' query='nwr[historic][historic!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>", |
|||
"valueName": "{{ tagTrans('historic', value) }}" |
|||
}, |
|||
"conflict": { |
|||
"key": "memorial:conflict", |
|||
"op": "has", |
|||
"name": "{{ keyTrans('memorial:conflict') }}", |
|||
"type": "select", |
|||
"values": [ |
|||
"WW1", |
|||
"WW2" |
|||
], |
|||
"valueName": "{{ tagTrans('memorial:conflict', value) }}" |
|||
}, |
|||
"civilization": { |
|||
"key": "historic:civilization", |
|||
"op": "has", |
|||
"name": "{{ keyTrans('historic:civilization') }}", |
|||
"type": "select", |
|||
"values": [ |
|||
"ancient_egyptian", |
|||
"ancient_greek", |
|||
"ancient_roman", |
|||
"byzantine", |
|||
"celtic", |
|||
"etruscan", |
|||
"imperial_chinese", |
|||
"korean", |
|||
"medieval", |
|||
"modern", |
|||
"neolithic", |
|||
"nuragic", |
|||
"ottoman", |
|||
"prehistoric", |
|||
"roman", |
|||
"western_roman" |
|||
], |
|||
"valueName": "{{ tagTrans('historic:civilization', value) }}" |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,154 @@ |
|||
{ |
|||
"type": "overpass", |
|||
"name": { |
|||
"en": "Darkred Dot" |
|||
}, |
|||
"query": { |
|||
"11": [ |
|||
"(", |
|||
"node[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
"way[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
"relation[historic~\"^(castle|archaeological_site|battlefield)$\"];", |
|||
")" |
|||
], |
|||
"14": [ |
|||
"(", |
|||
"node[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
"way[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
"relation[historic][historic!~\"^(memorial|monument|wayside_cross|wayside_shrine|wayside_chapel)$\"];", |
|||
")" |
|||
] |
|||
}, |
|||
"feature": { |
|||
"description": "{{ tagTransList('historic', tags.historic) }}", |
|||
"body": [ |
|||
"<ul>", |
|||
"{% if tags.inscription %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('inscription') }}:</span>", |
|||
" <span class='value'>{{ localizedTag(tags, 'inscription') }}</span>", |
|||
" </li>", |
|||
"{% elseif attribute(tags, 'inscription:url') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-pencil-alt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'><a href=\"{{ attribute(tags, 'inscription:url') }}\">{{ keyTrans('inscription') }}</a></span>", |
|||
" </li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'historic:civilization') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-users\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('historic:civilization') }}:</span>", |
|||
" <span class='value'>{{ tagTrans('historic:civilization', attribute(tags, 'historic:civilization')) }}</span>", |
|||
" </li>", |
|||
"{% endif %}", |
|||
"", |
|||
"{% if attribute(tags, 'memorial:conflict') %}", |
|||
" <li class='hasSymbol'>", |
|||
" <i class=\"fa fa-bolt\" aria-hidden=\"true\"></i>", |
|||
" <span class='key'>{{ keyTrans('memorial:conflict') }}:</span>", |
|||
" <span class='value'>{{ tagTransList('memorial:conflict', attribute(tags, 'memorial:conflict')) }}</span>", |
|||
" </li>", |
|||
"{% endif %}" |
|||
], |
|||
"markerSign": "{{ const[tags.historic].sign|raw }}", |
|||
"markerSymbol": "{{ markerPointer({'fillColor':'#af0000'})|raw }}", |
|||
"listMarkerSymbol": "{{ markerCircle({'fillColor':'#af0000'})|raw }}", |
|||
"style": { |
|||
"width": 3, |
|||
"color": "#af0000", |
|||
"radius": 2 |
|||
} |
|||
}, |
|||
"info": [ |
|||
"<table>", |
|||
"{% for value, data in const %}", |
|||
"{% if data.zoom <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'>{{ data.sign|raw }}</div></td>", |
|||
" <td>{{ tagTrans('historic', value) }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"{% endfor %}", |
|||
"{% if 14 <= map.zoom %}", |
|||
" <tr>", |
|||
" <td>{{ markerCircle({})|raw }}<div class='sign'></div></td>", |
|||
" <td>{{ trans('other') }}</td>", |
|||
" </tr>", |
|||
"{% endif %}", |
|||
"</table>" |
|||
], |
|||
"const": { |
|||
"archaeological_site": { |
|||
"sign": "<i class=\"fas fa-archway\"></i>", |
|||
"zoom": 11 |
|||
}, |
|||
"battlefield": { |
|||
"sign": "⚔️", |
|||
"zoom": 11 |
|||
}, |
|||
"castle": { |
|||
"sign": "<img data-src='maki:castle'>", |
|||
"zoom": 11 |
|||
}, |
|||
"building": { |
|||
"sign": "<img data-src='maki:building'>", |
|||
"zoom": 14 |
|||
}, |
|||
"aircraft": { |
|||
"sign": "<img data-src='maki:airport'>", |
|||
"zoom": 14 |
|||
}, |
|||
"ruins": { |
|||
"sign": "<img data-src='temaki:ruins'>", |
|||
"zoom": 14 |
|||
} |
|||
}, |
|||
"filter": { |
|||
"type": { |
|||
"key": "historic", |
|||
"show_default": "true", |
|||
"name": "{{ trans('filter:type') }}", |
|||
"type": "select", |
|||
"values": "{% set list = [] %}{% for t, v in const %}<option value=\"{{ t }}\">{% set list = list|merge([ t ]) %}{{ tagTrans('historic', t) }}</option>{% endfor %}<option value='other' query='nwr[historic][historic!~\"^({{ list|join('|') }})$\"]'>{{ trans('other') }}</option>", |
|||
"valueName": "{{ tagTrans('historic', value) }}" |
|||
}, |
|||
"conflict": { |
|||
"key": "memorial:conflict", |
|||
"op": "has", |
|||
"name": "{{ keyTrans('memorial:conflict') }}", |
|||
"type": "select", |
|||
"values": [ |
|||
"WW1", |
|||
"WW2" |
|||
], |
|||
"valueName": "{{ tagTrans('memorial:conflict', value) }}" |
|||
}, |
|||
"civilization": { |
|||
"key": "historic:civilization", |
|||
"op": "has", |
|||
"name": "{{ keyTrans('historic:civilization') }}", |
|||
"type": "select", |
|||
"values": [ |
|||
"ancient_egyptian", |
|||
"ancient_greek", |
|||
"ancient_roman", |
|||
"byzantine", |
|||
"celtic", |
|||
"etruscan", |
|||
"imperial_chinese", |
|||
"korean", |
|||
"medieval", |
|||
"modern", |
|||
"neolithic", |
|||
"nuragic", |
|||
"ottoman", |
|||
"prehistoric", |
|||
"roman", |
|||
"western_roman" |
|||
], |
|||
"valueName": "{{ tagTrans('historic:civilization', value) }}" |
|||
} |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue