mirror of
https://github.com/netzmacht/contao-leaflet-libraries.git
synced 2025-12-01 04:24:01 +01:00
Update leaflet geocoder.
This commit is contained in:
@@ -323,7 +323,7 @@
|
||||
|
||||
if (a.city || a.town || a.village) {
|
||||
parts.push('<span class="' + (parts.length > 0 ? 'leaflet-control-geocoder-address-detail' : '') +
|
||||
'">{postcode} {city}{town}{village}</span>');
|
||||
'">{postcode} {city} {town} {village}</span>');
|
||||
}
|
||||
|
||||
if (a.state || a.country) {
|
||||
@@ -620,6 +620,10 @@
|
||||
});
|
||||
},
|
||||
|
||||
suggest: function(query, cb, context) {
|
||||
return this.geocode(query, cb, context);
|
||||
},
|
||||
|
||||
reverse: function(location, scale, cb, context) {
|
||||
L.Control.Geocoder.getJSON(this.options.service_url + encodeURIComponent(location.lng) + ',' + encodeURIComponent(location.lat) + '.json', {
|
||||
access_token: this._access_token,
|
||||
|
||||
Reference in New Issue
Block a user