Skip to content

Commit 0cd5744

Browse files
committed
Removes warning about conflicts with Draw plugin
1 parent 8bcb688 commit 0cd5744

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

examples/Plugins.ipynb

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -793,9 +793,6 @@
793793
"\n",
794794
"plugins.LocateControl().add_to(m)\n",
795795
"\n",
796-
"# If used with Draw plugin, LocateControl needs to be added before it.\n",
797-
"# Draw().add_to(m)\n",
798-
"\n",
799796
"m"
800797
]
801798
}

folium/plugins/locate_control.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ class LocateControl(MacroElement):
1818
To work properly in production, the connection needs to be encrypted, otherwise browser will not
1919
allow users to share their location.
2020
21-
WARNING: This plugin when used with Draw plugin, it must be added to your map before Draw. See
22-
example below.
23-
2421
Parameters
2522
----------
2623
**kwargs
@@ -32,14 +29,12 @@ class LocateControl(MacroElement):
3229
# With default settings
3330
>>> LocateControl().add_to(m)
3431
35-
# With custom options and alongside with Draw
32+
# With some custom options
3633
>>> LocateControl(
3734
... position="bottomright",
3835
... strings={"title": "See you current location",
3936
... "popup": "Your position"}).add_to(m))
4037
41-
>>> Draw(export=True).add_to(m)
42-
4338
For more info check:
4439
https://github.com/domoritz/leaflet-locatecontrol
4540

0 commit comments

Comments
 (0)