Join us online - 19th of November
Save your spot
For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class Actor

An implementation of the Actor design pattern that maintains the relationship between asynchronous tasks and the objects that spin them off - in this case, tasks like parsing parts of styles, owned by the styles

Implements

Index
  • Parameters

    • target: ActorTarget

      The target

    • OptionalmapId: string | number

      A unique identifier for the Map instance using this Actor.

    Returns Actor

abortControllers: { [x: string | number]: AbortController }
globalScope: ActorTarget
mapId: string | number | null
messageHandlers: {
    AT?: MessageHandler<abortTile>;
    GCC?: MessageHandler<getClusterChildren>;
    GCEZ?: MessageHandler<getClusterExpansionZoom>;
    GCL?: MessageHandler<getClusterLeaves>;
    GDA?: MessageHandler<getDashes>;
    GG?: MessageHandler<getGlyphs>;
    GI?: MessageHandler<getImages>;
    GR?: MessageHandler<getResource>;
    IS?: MessageHandler<importScript>;
    LD?: MessageHandler<loadData>;
    LDT?: MessageHandler<loadDEMTile>;
    LT?: MessageHandler<loadTile>;
    RDT?: MessageHandler<removeDEMTile>;
    RM?: MessageHandler<removeMap>;
    RMT?: MessageHandler<removeTile>;
    RS?: MessageHandler<removeSource>;
    RT?: MessageHandler<reloadTile>;
    SI?: MessageHandler<setImages>;
    SL?: MessageHandler<setLayers>;
    SR?: MessageHandler<setReferrer>;
    SRPS?: MessageHandler<syncRTLPluginState>;
    UGS?: MessageHandler<updateGlobalState>;
    UL?: MessageHandler<updateLayers>;
}
name: string
resolveRejects: { [x: string]: ResolveReject }
subscription: Subscription
target: ActorTarget
taskQueue: string[]
tasks: { [x: string]: MessageData }
  • Returns void

  • Parameters

    Returns Promise<void>

  • Returns void

  • Type Parameters

    Parameters

    • type: T

    Returns void

Was this helpful?