The accuracy of the current position in metres.
The coordinate of the current position.
The direction the user is facing in degrees from north.
Enable the Blue Dot. It will be hidden until a position is received either from the browser or by calling BlueDot.update.
Optional
options: TBlueDotOptionsThe options to setup the Blue Dot.
Unsubscribe a function previously subscribed with on
An event name to which the provided function was previously subscribed.
A function that was previously passed to on. The function must have the same reference as the function that was subscribed.
Subscribe a function to an event.
An event name which, when fired, will call the provided function.
A callback that gets called when the corresponding event is fired. The callback will get passed an argument with a type that's one of event payloads.
Manually override some position properties of the Blue Dot. Accepts a full GeolocationPosition object or a partial TBlueDotPositionUpdate object.
Generic PubSub class implementing the Publish-Subscribe pattern for event handling.