Home > @magiclane/maps-sdk > MapViewPathCollection
MapViewPathCollection class
Collection of paths for a map view.
This class should not be instantiated directly. Instead, use the MapViewPreferences.paths getter to obtain an instance.
Core
Signature:
export declare class MapViewPathCollection Constructors
Constructor | Modifiers | Description |
|---|---|---|
Constructs a new instance of the |
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| number | ||
| number | ||
| number | bigint | ||
| number | Get the number of paths in this collection. |
Methods
Method | Modifiers | Description |
|---|---|---|
Add a path to the collection. | ||
Remove all paths from the collection. | ||
Get the border color for the path specified by index. If the result is transparent, then the index does not exist in the collection. | ||
Get the border size for the path specified by index. If the result is -1, then the index does not exist in the collection. | ||
Get the fill color for the path specified by index. If the result is transparent, then the index does not exist in the collection. | ||
Get the inner size for the path specified by index. If the result is -1, then the index does not exist in the collection. | ||
Get the path specified by index. | ||
Get the path specified by name. | ||
Hit test in path collection. Checks for paths within the given area. | ||
Remove the path from the collection. | ||
Remove the path specified by index. |