Skip to content

Commit 9bbfc6a

Browse files
IvanSanchezperliedman
authored andcommitted
Docstrings: Add a note about using locate() over plain HTTP (Leaflet#4520)
1 parent 425fa13 commit 9bbfc6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/map/ext/Map.Geolocation.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ L.Map.include({
2020
// event with location data on success or a [`locationerror`](#map-locationerror) event on failure,
2121
// and optionally sets the map view to the user's location with respect to
2222
// detection accuracy (or to the world view if geolocation failed).
23+
// Note that, if your page doesn't use HTTPS, this method will fail in
24+
// modern browsers ([Chrome 50 and newer](https://sites.google.com/a/chromium.org/dev/Home/chromium-security/deprecating-powerful-features-on-insecure-origins))
2325
// See `Locate options` for more details.
2426
locate: function (options) {
2527

0 commit comments

Comments
 (0)