From 6ecc0cd148249d24cb61de72e2109b41407db1df Mon Sep 17 00:00:00 2001 From: Maxim Zhgulev Date: Sat, 20 Apr 2024 13:28:29 +0300 Subject: [PATCH] fix OSM API urls --- Control.Geocoder.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Control.Geocoder.js b/Control.Geocoder.js index 30340e2..7f74514 100644 --- a/Control.Geocoder.js +++ b/Control.Geocoder.js @@ -340,7 +340,7 @@ }, geocode: function(query, cb, context) { - L.Control.Geocoder.jsonp(this.options.serviceUrl + 'search/', L.extend({ + L.Control.Geocoder.jsonp(this.options.serviceUrl + 'search', L.extend({ q: query, limit: 5, format: 'json', @@ -367,7 +367,7 @@ }, reverse: function(location, scale, cb, context) { - L.Control.Geocoder.jsonp(this.options.serviceUrl + 'reverse/', L.extend({ + L.Control.Geocoder.jsonp(this.options.serviceUrl + 'reverse', L.extend({ lat: location.lat, lon: location.lng, zoom: Math.round(Math.log(scale / 256) / Math.log(2)),