@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: {
            geometrySimplifier?: Handle;
            projection: string | Record<string, Json> | Handle<any>;
            spatialIndexType?:
                | "LOCAL_SPATIAL_INDEX_TYPE_NULL"
                | "LOCAL_SPATIAL_INDEX_TYPE_KDTREE";
            type: "local";
        }

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

        • OptionalgeometrySimplifier?: Handle

          Returns the active geometry simplifier of the data source.

        • projection: string | Record<string, Json> | Handle<any>
        • OptionalspatialIndexType?: "LOCAL_SPATIAL_INDEX_TYPE_NULL" | "LOCAL_SPATIAL_INDEX_TYPE_KDTREE"
        • type: "local"

      Returns MassifElements

    Methods

    • 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

      Parameters

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

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