Package arez.dom

Class GeoPosition

java.lang.Object
arez.dom.GeoPosition

A component that exposes the current geo position as an observable property. This component relies on the underlying Geolocation API and it's usage is restricted in the same way as the underlying API (i.e. it is only available in secure contexts and it asks user permission before providing data.).

 final GeoPosition geoPosition = GeoPosition.create();
 Arez.context().observer( () -> consumePosition( geoPosition.getPosition() ) );