Skip to content
New issue

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

Display lat, lng, alt in the inner marker popup #335

Open
luisfio1 opened this issue Jun 7, 2023 · 0 comments
Open

Display lat, lng, alt in the inner marker popup #335

luisfio1 opened this issue Jun 7, 2023 · 0 comments

Comments

@luisfio1
Copy link

luisfio1 commented Jun 7, 2023

Would it be possible to change the popup string to show the lat, lng and altitude of my position?

These are variables that I have defined in my script.

lc = L.control.myLocate({
locateOptions: {
enableHighAccuracy: true
}
}).addTo(map);

map.on('locationfound', function (evt) {

LatLng = evt.latlng;
longitud= LatLng.lng;
latitud= LatLng.lat;
altitud= evt.altitude;	
currentPos = [latitud, longitud];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant