Home > @magiclane/maps-sdk > OverlayItem
OverlayItem class
Overlay Item class
This class should not be instantiated directly.
Maps & 3D Scene
Signature:
export declare class OverlayItem extends GemAutoreleaseObject Extends: GemAutoreleaseObject
Remarks
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the OverlayItem class.
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
|
number |
Get the category ID of the overlay item | |
|
|
Get the coordinates of the overlay item | ||
|
|
boolean |
Check if the overlay item has preview extended data | |
|
|
Uint8Array |
Get the image of the overlay item | |
|
|
Get the Img object of the overlay item | ||
|
|
string |
Get the name of the overlay item | |
|
|
OverlayInfo | null |
Get the parent overlay info | |
|
|
number |
Get the parent overlay UID | |
|
|
number | bigint | ||
|
|
Get the preview data as a searchable parameter list | ||
|
|
any |
Get the preview data as a JSON object | |
|
|
string |
Get the preview URL for the overlay item | |
|
|
number |
Get the unique ID of the overlay item |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Cancel a running preview extended data request. | ||
|
Get extended preview data asynchronously for the overlay item. | ||
|
Convenience typed accessor for previewData. T Type extending SearchableParameterList | ||
|
Retrieve public-transport stop details when available. This helper calls getPreviewExtendedData and converts the result to a PTStopInfo when the item belongs to CommonOverlayId.PublicTransport. | ||
|
Check if the overlay is of the given type |