continue refactor of geocoding services, improved locale, fixes on mapEdit

This commit is contained in:
sedum
2023-02-20 07:05:21 +01:00
parent 7522e811fa
commit 8efeda085a
11 changed files with 117 additions and 1100 deletions

View File

@@ -18,7 +18,7 @@ const photon = {
}
},
/*
/**
* Icons to nominatim `osm_type` and `class` conversion
*/
searchIcons_nominatim_osm_type: {
@@ -26,11 +26,18 @@ const photon = {
'N': 'mdiMapMarker',
'R': 'mdiCityVariant',
},
searchIcons_nominatim_class: {
mdiHome: ['amenity', 'shop', 'tourism', 'leisure', 'building'],
searchIcons_nominatim_class: ['amenity', 'shop', 'tourism', 'leisure', 'building'],
loadResultIcon (item) {
if (this.searchIcons_nominatim_class.includes(item.class)) {
return 'mdiHome'
}
return this.searchIcons_nominatim_osm_type[item.type]
},
/**
* Map results from provider
*/
fullAddressMapping: ['housenumber', 'street', 'locality', 'district', 'city', 'county', 'state', 'postcode', 'country'],
mapQueryResults(ret, addressList = []) {