@nativescript-community/ui-massifmaps
    Preparing search index...

    Class MassifElements

    Markers and popups; elements and styles are specs. The layer and source are created on first use, released with the map.

    Index

    Constructors

    • Parameters

      • map: MassifMap
      • id: string
      • OptionalsourceSpec: {}

        Where the positions are read. lon/lat by default, matching the rest of this API.

      Returns MassifElements

    Methods

    • The spec's style either names a registered style or carries it inline.

      Type Parameters

      • T extends SpecType<"element">

      Parameters

      • spec: SpecArg<"element", T>

      Returns MassifObject<ClassOfSpec<"element", T>>

    • Returns this

    • Returns MassifLayer<"massif::VectorLayer">

    • Set e.consumed to claim the tap, otherwise it also reaches the map.

      Parameters

      Returns Subscription

    • The element stays registered until it is destroyed.

      Parameters

      Returns boolean

    • Returns MassifObject<"massif::LocalVectorDataSource">

    • Lets many elements share ONE style object, which matters once there are thousands.

      Type Parameters

      • T extends SpecType<"elementstyle">

      Parameters

      • styleId: string
      • spec: SpecArg<"elementstyle", T>

      Returns MassifObject<ClassOfSpec<"elementstyle", T>> & { id: string }