j-GPS
- singleton
- readonly
The component tries to read GPS coordinates.
Configuration:
watcher {Boolean}enables a real-time watcher for GPS (default:true)
Good to know:
The component emits ON('gps', function(coords) { event with a new GPS coordinates.
Use it with <ui-component name="gps">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<ui-component name="gps" path="mygps"></ui-component>
<pre><ui-bind path="mygps" config="html:JSON.stringify(value, null, ' ')"></ui-bind></pre>