Helper class to manipulate ARFeatures

Constructors

Properties

hasCapacity: ((feature, capacity) => boolean) = hasCapacity

Type declaration

    • (feature, capacity): boolean
    • Check if a feature has a given capacity

      Parameters

      Returns boolean

hasEntityType: ((feature, entityType) => boolean) = hasEntityType

Type declaration

    • (feature, entityType): boolean
    • Check if given feature is of given AREntityType

      Parameters

      Returns boolean

isCurrent: ((mapId, feature) => boolean) = isFeatureCurrent

Type declaration

    • (mapId, feature): boolean
    • Check if given feature is the one of the current ones

      Parameters

      Returns boolean

isSelected: ((mapId, featureId) => boolean) = isFeatureSelected

Type declaration

    • (mapId, featureId): boolean
    • Check if given feature is selected

      Parameters

      • mapId: string
      • featureId: string

      Returns boolean

toARFeature: ((feature, properties?) => ARFeature) = toARFeature

Type declaration

    • (feature, properties?): ARFeature
    • Convert a GeoJsonFeature to an ARFeature

      Parameters

      • feature: GeoJsonFeature
      • Optional properties: Partial<ARFeatureProperty>

        optional ARProperties to add to the feature

      Returns ARFeature

toARFeatureCollection: ((featureCollection) => ARFeatureCollection) = toARFeatureCollection

Type declaration

Generated using TypeDoc