Don't do the admin boundary special case unless admin_level is set
This commit is contained in:
parent
e11d734f9f
commit
cddec72be5
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ OSM.Query = function(map) {
|
|||
var tags = feature.tags;
|
||||
var prefix = "";
|
||||
|
||||
if (tags.boundary === "administrative") {
|
||||
if (tags.boundary === "administrative" && tags.admin_level) {
|
||||
prefix = I18n.t("geocoder.search_osm_nominatim.admin_levels.level" + tags.admin_level)
|
||||
} else {
|
||||
var prefixes = I18n.t("geocoder.search_osm_nominatim.prefix");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue