When using leaflet maps and searching by city, if the nominatim request comes back with multiple results, you do a comparison on region code. The result comes back as 'us', and the default result set in options is ''US" so no match is found and it errors out.
When using leaflet maps and searching by city, if the nominatim request comes back with multiple results, you do a comparison on region code. The result comes back as 'us', and the default result set in options is ''US" so no match is found and it errors out.
Solve with a simple toLowerCase
Line 1579 of gmw.core.js
if ( typeof( data[t].address.country_code ) !== 'undefined' && data[t].address.country_code.toLowerCase() == options.region.toLowerCase() )
The same issue exists in the backend geocode function too
gwm-geocoding-providers.php ~line 333
if ( ! empty( $location_details->address->country_code ) && strtolower ($this->params['region']) === strtolower ($location_details->address->country_code) ) {