- Issue created by @Orabi
The geocode_address.js file still uses once() incorrectly
see
here →
It also tries to add the resulted lon/lat to a lon/lat field in the map, which does not seem to exist. Instead we save them in the Geojson Data field in the leaflet field
The Field widget uses the method $val->getFormattedAddress();
, which does not exist
we are now using $val->getDisplayName()
;
Drupal =>10.2.6
address_js_gocoder => 2.0.x-dev
Address => ^2.0
leaflet=> ^10.2
Setup as explained in the module page
Try to resolve an address
Notice the js error in the console
TypeError: $(...).once is not a function
For our usecase :
Remove jquery.once and use the button click event to resolve the address
Replace getFormattedAddress with get getDisplayName in the widget
Save the data in the Geojson data field
Active
2.0
Code