mcguffin / acf-openstreetmap-field

WordPress ACF Field for OpenStreetMap
https://wordpress.org/plugins/acf-openstreetmap-field/
GNU General Public License v3.0
107 stars 22 forks source link

1.5.3 | Uncaught ReferenceError: marker is not defined #105

Closed MaxRenglet closed 1 year ago

MaxRenglet commented 1 year ago

Hi,

Just to let you know that the plugin seem to have an error when searching for an address :

Capture d'écran 2023-11-07 153251

I don't have the time to dig in the plugin..

MaxRenglet commented 1 year ago

@mcguffin Thanks !

bastien-martinent commented 1 year ago

Hi, there is a another bug here, i have a case where a have 1 max map marker no mapmarker already set and L503 to L505 is executed and crash. i have no idee why canAddMarker do not return true in this case. if a map marker is set everythink work fine.

map-input.js:504 Uncaught TypeError: Cannot read properties of undefined (reading 'get') at t.<anonymous> (map-input.js:504:30) at t.fire (leaflet-src.js:606:1) at e._geocodeResultSelected (Control.Geocoder.js:1774:1) at t.<anonymous> (Control.Geocoder.js:1830:1) at HTMLLIElement.n (leaflet-src.js:2799:1)