question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Detected location of user function

See original GitHub issue

Please add a code sample or a nbviewer link, copy-pastable if possible

# Your code here

Problem description

I recently used folium and wanted to locate myself as I will be walking around and looking at the map. I noticed folium didn’t have this but leaflet does. In my first try I was able to open the html file that folium makes and paste in the locate code and it worked! I am new to developing but I was wondering if it is possible to add a locate function to folium to make this a native option. thanks!

Expected Output

Output of folium.__version__

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Freddie999commented, Jul 14, 2021

Hello, I was wondering if there is a way to get the user’s coordinates and pass into another function. Also, is the way to update this when the user moves?

0reactions
Conengmocommented, May 23, 2020

Since this feature got merged I’m closing the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Detect location and local timezone of users in JavaScript
Detect location and local timezone of users in JavaScript · It first checks that the browser has/supports Geolocation API. · This is by...
Read more >
How to Detect User Location with Javascript - Red Stapler
In this article, we're going to show you how to detect user location using Geolocation API. A pure-JavaScript way without any third-party ...
Read more >
How to Check a User's Location with JavaScript
The Geolocation API provides getCurrentPosition() so we can quickly locate users. This function will get the job done quite easily, but you ...
Read more >
How To Detect The Location of Your Website's Visitors Using ...
When you try to retrieve the location using this API, a prompt is shown to the user, asking them if they'd like to...
Read more >
Geolocation: Displaying User or Device Position on Maps
This tutorial shows you how to display the geographic location of a user or device on a Google map, using your browser's HTML5...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found