kopia lustrzana https://github.com/openstreetmap-polska/aed-mapa
added operator field
rodzic
5647b5c36d
commit
617187b507
|
@ -44,6 +44,7 @@ tag_name_mapping = {
|
|||
"wikimedia_commons": "zdjęcie (osm_tag:wikimedia_commons)",
|
||||
"osm_id": "id osm",
|
||||
"osm_node_url": "url obiektu osm",
|
||||
"operator": "zarządzający urządzeniem (osm_tag:operator)",
|
||||
}
|
||||
|
||||
tags_to_keep = {
|
||||
|
|
|
@ -249,7 +249,7 @@ map.on('load', (e) => {
|
|||
'type': 'symbol',
|
||||
'source': 'aed-locations',
|
||||
'layout': {
|
||||
'icon-image': ['concat', 'aed-icon-', ['get', 'access']], //['image', 'aed-icon-{access}'],
|
||||
'icon-image': ['concat', 'aed-icon-', ['get', 'access']],
|
||||
'icon-size': 1,
|
||||
'icon-overlap': 'always',
|
||||
},
|
||||
|
|
|
@ -171,6 +171,14 @@ function renderNotes(properties) {
|
|||
}
|
||||
}
|
||||
|
||||
function renderOperator(operator)
|
||||
{
|
||||
let beginning = '<p class="has-text-weight-light">Zarządzający urządzeniem: <span class="add-new has-text-weight-medium">';
|
||||
let middle = operator || '<span class="has-text-grey-light is-italic has-text-weight-light">brak informacji</span>';
|
||||
let end = '</span></p>';
|
||||
return beginning + middle + end;
|
||||
}
|
||||
|
||||
function renderSidebarContent(properties) {
|
||||
let content = '';
|
||||
content += renderIfIndoor(properties.indoor, properties.location);
|
||||
|
@ -178,6 +186,7 @@ function renderSidebarContent(properties) {
|
|||
content += renderAccessibleTime(properties.opening_hours);
|
||||
content += renderDescription(properties);
|
||||
content += renderContactNumber(properties.phone);
|
||||
content += renderOperator(properties.operator);
|
||||
content += renderNotes(properties);
|
||||
return content;
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue