From 5f60cbfb75d0579d81fa2277ea2687b640d0bc30 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 7 Aug 2022 20:44:19 +0700 Subject: [PATCH] geocoding disabled --- lpadsjs/mapads_marker.html | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lpadsjs/mapads_marker.html b/lpadsjs/mapads_marker.html index f5ce24f..66b56a5 100644 --- a/lpadsjs/mapads_marker.html +++ b/lpadsjs/mapads_marker.html @@ -580,6 +580,7 @@ function loadPins(adData) { var fa_index = 0 + var not_found = false adData.forEach(function(ad) { lp = ad.adLocation.split(", ") switch (up.get("geocoder")) { @@ -592,12 +593,17 @@ break case "nominatim": - default: tg = searchAPIURLNominatim.replace("(lat)", lp[0]).replace("(long)", lp[1]) - break + break + + case "none": + default: + not_found = true + break } var atwn = null + if (not_found) atwn = "Geocoding disabled" if (adParseFunction != null) { resp = adParseFunction(JSON.parse(JSON.stringify(ad))) if (resp != null) {