continue refactor of geocoding services, improved locale, fixes on mapEdit
This commit is contained in:
@@ -24,7 +24,7 @@ const nominatim = {
|
||||
}
|
||||
},
|
||||
|
||||
/*
|
||||
/**
|
||||
* Icons to nominatim `osm_type` and `class` conversion
|
||||
*/
|
||||
searchIcons_nominatim_osm_type: {
|
||||
@@ -33,10 +33,18 @@ const nominatim = {
|
||||
node: 'mdiMapMarker',
|
||||
relation: 'mdiCityVariant',
|
||||
},
|
||||
searchIcons_nominatim_class: {
|
||||
mdiHome: ['place', 'amenity', 'shop', 'tourism', 'leisure', 'building']
|
||||
searchIcons_nominatim_class: ['place', '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
|
||||
*/
|
||||
filterNameFromAddress: ['place', 'amenity', 'shop', 'tourism', 'leisure', 'building'],
|
||||
|
||||
mapQueryResults (ret, addressList = []) {
|
||||
|
||||
Reference in New Issue
Block a user