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.

Add auto start to Locate Control plugin

See original GitHub issue

Actually, 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:closed
  • Created 4 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mejlcommented, Feb 15, 2022

Hello @fullonic. That worked, thank you.

1reaction
fulloniccommented, Feb 14, 2022

Hi @mejl. To use this functionality, you just need to initiate the LocateControl plugin with the auto_start=True instead of the default value False. https://github.com/python-visualization/folium/blob/67aab11039cd990d73fdf14566380286835ff84b/folium/plugins/locate_control.py#L68

Read more comments on GitHub >

github_iconTop 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 >

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