Optionalnative: { layers: number; view: number }Set when the native view registered its own map, view and layers: they go with the view, not with this wrapper.
ReadonlyclassReadonlyhandleOptional ReadonlyidThe registry id, when the object has one. A call result does not.
ReadonlyviewFalse after destroy, and after the id was dropped.
OptionalclassName: ClassNameProtectedbeforeHook for a subclass that has to install a native listener before the first subscription.
Owned by the map but not placed: for add(layer, index) or layers().insert(...).
The path may traverse object properties (layer.call('tileDecoder.setStyleParameter', ...)).
An object result is a MassifObject the CALLER OWNS - destroy() it, or it stays registered.
call on a worker. extract runs INSIDE the delivery, the only time an object result is alive,
e.g. (tile) => tile.getData('data'). Scalars and flat arrays need no extract.
Optionalextract: (result: MassifObject<ResultClass<"massif::Options", M>>) => Rwait holds the capture until the tiles have settled.
Optionalwait: booleanThe next rendered frame as PNG bytes, through the facade: it needs no object API. wait holds
the capture until the tiles have settled. Null when the capture failed or timed out.
Optionalwait: booleanThe object behind an object property, OWNED by the caller (destroy() it); null when empty.
Unlike group it hands the object over, e.g. to share a source between layers.
Defaults cover a search result; a route's instructions are
collect(fn, { countPath: 'instructionCount', method: 'getInstruction' }).
Defaults cover a search result; a route's instructions are
collect(fn, { countPath: 'instructionCount', method: 'getInstruction' }).
Releases every id the map built, not the view: the object API's map keeps working.
sourceSpec is for a map not in lon/lat; only the first call uses it.
OptionalsourceSpec: {}Defaults for every later subscription on this object.
Shorthand for eventOptions({ projection }).
Optionalspec: {}The path may walk objects (fogOptions.rangeStart), structs (clickInfo.clickType) and free-form
data (properties.name). Enums come back as names, positions as [lon, lat], structs as JSON.
An empty path means the handle IS the blob.
Optionalpath: stringWGS84 [lng, lat] unless a projection is named here or on the subscription. An object whose source
projection is unknown is left unconverted: a wrong guess is worse than an unconverted number.
Optionalprojection: ProjectionNameA path the tables do not carry - the concrete class is more derived than the declared one.
Optionalprojection: ProjectionNameProtectedinvokeUntyped call for the named wrappers: they know the declaring class, call's C does not.
instanceof by class name, e.g. layer.is('massif::RasterTileLayer').
Escape hatch for paths the tables cannot type: free-form feature properties, a more derived class.
Optionalpath: stringA layer this map added or adopted, by the id it was given.
Includes layers the object API put there.
Optionalspec: {}Removes the listener(s) for the specified event name.
Optionalcallback: anyAn optional specific event listener to remove (if omitted, all event listeners by this name will be removed).
OptionalthisArg: anyAn optional parameter which, when set, will be used to refine search of the correct event listener to be removed.
Deliberately NOT widened to string so event-name typos fail; addEventListener takes any name.
OptionalthisArg: anyAdds a listener for the specified event name, which, once fired, will remove itself.
The event listener to add. Will be called when an event of the given name is raised.
OptionalthisArg: anyAn optional parameter which, when set, will be bound as the
this context when the callback is called. Falsy values will be not be
bound.
Optionaloptions: SubscribeOptionsOptionaloptions: SubscribeOptionsOptionaloptions: SubscribeOptionsOptionaloptions: SubscribeOptionsOptionaloptions: SubscribeOptionsRemoves listener(s) for the specified event name.
Optionalcallback: anyAn optional parameter pointing to a specific listener. If not defined, all listeners for the event names will be removed.
OptionalthisArg: anyAn optional parameter which when set will be used to refine search of the correct callback which will be removed as event listener.
The layer stays registered until it is destroyed.
Rarely needed: the SDK redraws on picture-changing writes. For off-UI-thread changes or a view hidden while moving.
Optionalspec: {}Worth an id when the app talks to it later: a layer's style property cannot be read back as a handle.
For a handler needing its own projection or delivery; on covers most cases.
Optionaloptions: SubscribeOptionsThe elevation decoder comes from the source's own encoding.
Optionalspec: {}Returns a string representation of an object.
Addressed through its Options: fog, sky, light, terrain, camera limits... all hang off it.