Home > @magiclane/maps-sdk > PositionService
PositionService class
Position service class
Signature:
export declare class PositionService Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
GemImprovedPosition | null |
Gets the latest improved position data available | |
|
|
Gets the singleton instance of PositionService | ||
|
|
GemPosition | null |
Gets the latest position data available | |
|
|
Gets the method used to obtain position data |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Register a new improved position listener | ||
|
Register a new listener for position updates | ||
|
Gets the current data source used for position data | ||
|
Removes the current position data source | ||
|
Unregister a position listener | ||
|
Requests location permission and sets live data source | ||
|
|
Requests location permission (Web only) | |
|
Sets an external data source for position data | ||
|
Sets the position service current datasource to live |