Maps your current location using the Geolocation API and uses reverse geocoding to add address info to the resulting marker.
See also this example, which shows how to map a user's location using Leaflet's locate method and LocationEvent.
#!/usr/bin/env bash | |
# Copy the url of the active ngrok connection to the clipboard. Updated for latest ngrok (Oct 2019) | |
# | |
# Usage: | |
# ngrok-copy # copies e.g. https://3cd67858.ngrok.io to clipboard. | |
# ngrok-copy -u # copies e.g. http://3cd67858.ngrok.io to clipboard. | |
# | |
# Modified from the original script at https://gist.github.com/mlsteele/f57adc1fab5c44656d6d | |
Maps your current location using the Geolocation API and uses reverse geocoding to add address info to the resulting marker.
See also this example, which shows how to map a user's location using Leaflet's locate method and LocationEvent.