ForgeComponents
en

Components

j-GPS

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20
  • 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.

example.html
<ui-component name="gps" path="mygps"></ui-component>
<pre><ui-bind path="mygps" config="html:JSON.stringify(value, null, '  ')"></ui-bind></pre>