CoCreate actions for the browser Geolocation API.
yarn add @cocreate/geolocationOr load the browser bundle from https://cdn.cocreate.app/geolocation/latest/CoCreate-geolocation.min.js.
Use the geoLocation action methods getCurrentPosition, watchPosition, and clearWatch. The browser may request permission and requires a secure context.
<button actions="geoLocation.getCurrentPosition">Get location</button>See demo/index.html and the documentation.