Home > @magiclane/maps-sdk > MapViewExtensions
MapViewExtensions class
Map View Extensions
A compact set of view-scoped helpers that extend the native map view with lightweight, platform-proxied utilities for view tuning and small integrations. Exposes convenience features for performance and interaction tuning as well as integrations with sensing/positioning subsystems.
Common tasks are enforcing zoom limits and toggling performance optimizations for lower-end devices, switching reduced-rate navigation updates, enabling or disabling enhanced position-tracking visualizations (optionally driven by a specific data source and rendering settings), and querying the current tracked positions or tracking state.
Maps & 3D Scene
Signature:
export declare class MapViewExtensions Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Creates a new instance of MapViewExtensions |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
boolean |
Check if tracked position is started in the map view | |
|
boolean |
Get low end CPU optimizations flag. | ||
|
|
number |
Gets the map ID | |
|
number |
Get the maximum allowed zoom level. | ||
|
number |
Get the minimum allowed zoom level. | ||
|
boolean |
Gets navigation route low rate update flag | ||
|
|
number | bigint |
Gets the pointer ID | |
|
|
Get the current tracked positions as a coordinates list |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Get group highlighted item index for the given highlighted item index (in original list) | ||
|
startTrackPositions({ updatePositionMs, settings, dataSource, }, input) |
Start the sense data source improved position tracking on map by rendering a marker polyline between relevant map links points | |
|
Stops the sense data source improved position tracking on map |