We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using Leaflet v1.9.3 with the latest version of leaflet-locatecontrol as of 2023-Jan-15.
The issue I am running into is that setting locateOptions doesn't seem to work. For example, I am doing this:
// Add a geolocation control L.control.locate({ strings: { title: "Show my location", outsideMapBoundsMsg: "Your location is outside the RAMBA area.", }, locateOptions: { flyTo: true, enableHighAccuracy: true, keepCurrentZoomLevel: true, initialZoomLevel: false, showPopup: false, setView: false, metric: false, }, }).addTo(trailmap);
However, things like showPopup and keepCurrentZoomLevel aren't being used.
showPopup
keepCurrentZoomLevel
If I use L.Control.Locate.js (not the minified version) and set them directly (lines 179 and 323) in here, then they work fine.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am using Leaflet v1.9.3 with the latest version of leaflet-locatecontrol as of 2023-Jan-15.
The issue I am running into is that setting locateOptions doesn't seem to work. For example, I am doing this:
However, things like
showPopup
andkeepCurrentZoomLevel
aren't being used.If I use L.Control.Locate.js (not the minified version) and set them directly (lines 179 and 323) in here, then they work fine.
The text was updated successfully, but these errors were encountered: