Home > @magiclane/maps-sdk > OverlayMutableCollection > addCategory
OverlayMutableCollection.addCategory() method
Add a specific category of an overlay to the collection
Signature:
addCategory(overlayId: number, categoryId: number): void;Parameters
Parameter | Type | Description |
|---|---|---|
overlayId | number | The overlay ID |
categoryId | number | The category ID to add |
Returns:
void
Exceptions
An exception if it fails