Optionalacceptsposition a pre-rendered image (data URL or any image URL) over bounds; returns an opaque
raster-image handle. Non-interactive (clickable:false) by default so map events pass through to
the engine's own hit-testing; pass { interactive: true } to opt this overlay into direct SDK
interaction.
render a GeoJSON FeatureCollection/Feature onto map; returns an opaque vector handle.
Optionalapplyrestack overlays to match
handles, ordered bottom → top, and RETURN the handles: a provider may have replaced some (the
Google raster path recreates them), so callers must adopt the returned array.
build the map in el; returns the provider's native map object (exposed as fim.map).
fit the map's viewport to bounds.
subscribe to a normalized map event; returns an unsubscribe function. hover maps to the
provider's mousemove equivalent.
subscribe to mouse-move on the map, normalized to {lat, lng}; returns an unsubscribe function.
tear a raster-image handle down.
tear a vector handle down.
Optionalrequiresdoes create() need options.apiKey? (google: true, leaflet: false)
Optionalsetturn pan-by-drag on or off. Drag-based selection tools suppress it while drawing, because tracing a stroke and panning the map are the same gesture.
change a raster-image handle's opacity (0..1).
swap a raster-image handle's image (e.g. a palette repaint). The caller MUST use the RETURNED handle going forward — some providers (google) cannot swap the image in place and recreate the overlay instead.
Optionalviewground metres per screen pixel, plus the map's pixel size. What lets a tool be sized in SCREEN units (a brush that stays the same width as you zoom) without ever touching a map SDK.
Optionalwhenresolve once the
camera has settled. Safe to await unconditionally: it resolves on a timeout when the map is
already still, so it can never hang. Anything that reads the projection right after a fitBounds
must await this first — a click resolved mid-animation lands at the wrong coordinates.
can this provider render content in
crs? Asked byLayer's render precondition before drawing. Omitted = permissive (accepts anything).