Add auto start to Locate Control plugin
See original GitHub issueActually, the locate control plugin doesn’t provide a way of auto start, being necessary the user click on plugin button to get the position showed on map.
However, the Leaftlet plugin gives the possibility of having an auto-start simply by doing lc.start()
; after the plugin is initiated. source
@Conengmo, if you are okay with implementing this on the folium plugin I’m happy in making a PR.
I already implemented and tested here and works as expected.
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
domoritz/leaflet-locatecontrol - GitHub
This plugin is available in the npm repository. Just run npm install leaflet.locatecontrol . The control is available from JsDelivr CDN.
Read more >How to Install a Remote Car Starter Yourself - YouTube
This video demonstrates how to install a wireless remote starter on a vehicle. This was my first time doing this so it was...
Read more >Android Control Plugins - Help Center - AnyDesk
When you start AnyDesk and enable the option to download and set up the plugin, it will automatically find the best control plugin...
Read more >plugins — Folium 0.12.1 documentation - GitHub Pages
auto -start (bool, default False) – When set to True, plugin will be activated on map loading and search for user position. Once...
Read more >PowerToys Run utility for Windows - Microsoft Learn
!startup:auto to search all services that start automatically ... The Windows System Commands plugin provides a set of system level actions ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @fullonic. That worked, thank you.
Hi @mejl. To use this functionality, you just need to initiate the
LocateControl
plugin with theauto_start=True
instead of the default valueFalse
. https://github.com/python-visualization/folium/blob/67aab11039cd990d73fdf14566380286835ff84b/folium/plugins/locate_control.py#L68