Home > @magiclane/maps-sdk > LandmarkStore > getLandmarkCount

LandmarkStore.getLandmarkCount() method

Get the number of all landmarks within the specified category.

If the category ID is uncategorizedLandmarkCategId, the uncategorized landmarks count is returned. If the category ID is invalidLandmarkCategId, the total landmarks count is returned.

Signature:

getLandmarkCount(categoryId?: number): number;

Parameters

Parameter

Type

Description

categoryId

number

(Optional) The category ID

Returns:

number

The number of landmarks

Exceptions

An exception if it fails.