You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a workaround : as I split the lontitude and latitude in two fields I do not use an input to store the geouri, so I had to launch manually the map.
If the map is opened manually it will not be closed by such events.
There is a snippet that add a span on which a click opens the map.
<scriptsrc=" https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.min.js "></script><linkhref=" https://cdn.jsdelivr.net/npm/leaflet@1.9.4/dist/leaflet.min.css "rel="stylesheet"><scriptsrc=" https://cdn.jsdelivr.net/npm/leaflet-locationpicker@0.3.4/src/leaflet-locationpicker.min.js "></script><linkhref=" https://cdn.jsdelivr.net/npm/leaflet-locationpicker@0.3.4/src/leaflet-locationpicker.min.css "rel="stylesheet"><spanclass="fas fa-map-marker-alt"type='disabled'id="geouri"></span><scripttype="text/javascript">$().ready(function(){// retrieve coordinates from split inputletcoord=$('input[name=poslatitude]').val()+','+$('input[name=poslongitude]').val();$('#geouri').leafletLocationPicker({location: coord,onChangeLocation: function(o){// split location$('input[name=poslatitude]').val(o.latlng.lat);$('input[name=poslongitude]').val(o.latlng.lng);// do not forget to close the map$('#geouri')[0].closeMap();}});// open map on close$('#geouri').on('click',function(e){e.target.openMap()});});</script>
Hello,
When you click the map zoom button, the map closes without you being able to select a position.
Tested on Chrome and IE 11
The text was updated successfully, but these errors were encountered: