Positioning & Sensors
The Positioning module provides powerful tools for managing location data in your web app, enabling features like navigation, tracking, and location-based services. It offers flexibility by supporting both real GPS data (via browser Geolocation API) and custom location sources, allowing for dynamic and accurate position tracking. In addition, the Recorder module complements the Positioning capabilities by enabling the recording of sensor data.
📄️ Sensors and data sources
This section provides an overview of how the Maps SDK for TypeScript integrates with various sensors and external data sources to enhance map functionality and interactivity. From GPS and compass data to accelerometer readings and custom telemetry inputs, the SDK is designed to support a wide range of sensor-driven scenarios.
📄️ Get started with positioning
The Positioning module enables your web application to obtain and utilize location data, serving as the foundation for features like navigation, tracking, and location-based services. This data can be sourced either from the browser's Geolocation API or from a custom data source, offering flexibility to suit diverse application needs.
📄️ Show location on map
The location of the device is shown by default using an arrow position tracker. If `setLiveDataSource` has been successfully set and the required permissions were granted then the position tracker showing the current location should be visible on the map as an arrow.
📄️ Custom positioning
The Maps SDK for TypeScript allows setting custom data source with the PositionService to dynamically manage and simulate location data. This approach allows for external or simulated positioning data, providing flexibility beyond traditional GPS signals, and is ideal for testing or custom tracking solutions.
📄️ Projections
Besides the Coordinates class, the Maps SDK for TypeScript provides a Projection class that represents the base class for different geocoordinate systems such as: