Skip to content

Commit

Permalink
Fix: CMB2 Leaflet Geocoder
Browse files Browse the repository at this point in the history
Fixes italia#339, italia#340
Fix trovato da @abmcr, @fnori77, @marcogangemideda

Fa seguito a un [cambiamento nella API di openstreetmap](osm-search/Nominatim#3134).
  • Loading branch information
enrimk authored Sep 7, 2023
1 parent afb245a commit 767811c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/lib/CMB2-field-Leaflet-Geocoder/assets/js/geocoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,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',
Expand All @@ -396,7 +396,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)),
Expand Down

0 comments on commit 767811c

Please sign in to comment.