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 793
793
" \n " ,
794
794
" plugins.LocateControl().add_to(m)\n " ,
795
795
" \n " ,
796
- " # If used with Draw plugin, LocateControl needs to be added before it.\n " ,
797
- " # Draw().add_to(m)\n " ,
798
- " \n " ,
799
796
" m"
800
797
]
801
798
}
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ class LocateControl(MacroElement):
18
18
To work properly in production, the connection needs to be encrypted, otherwise browser will not
19
19
allow users to share their location.
20
20
21
- WARNING: This plugin when used with Draw plugin, it must be added to your map before Draw. See
22
- example below.
23
-
24
21
Parameters
25
22
----------
26
23
**kwargs
@@ -32,14 +29,12 @@ class LocateControl(MacroElement):
32
29
# With default settings
33
30
>>> LocateControl().add_to(m)
34
31
35
- # With custom options and alongside with Draw
32
+ # With some custom options
36
33
>>> LocateControl(
37
34
... position="bottomright",
38
35
... strings={"title": "See you current location",
39
36
... "popup": "Your position"}).add_to(m))
40
37
41
- >>> Draw(export=True).add_to(m)
42
-
43
38
For more info check:
44
39
https://github.com/domoritz/leaflet-locatecontrol
45
40
You can’t perform that action at this time.
0 commit comments