File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments