Do not use this constructor directly. Use createDatasetManager instead.
Dataset manager options.
Readonly
datasetThe name of the dataset being managed.
Readonly
Internal
wxAPIA reference to the WX API instance that created this manager.
Protected
_checkCreates a source layer for this dataset.
const sourceLayer = wxDatasetManager.createSourceLayer(
{ variable: "temperature" },
{ framework: "leaflet" }
);
Layer-specific options (e.g., variables).
Framework-specific options.
Constructs the URI for fetching dataset tiles.
const uri = wxDatasetManager.createURI("temperature", "2024-06-10T12:00:00Z");
console.log(uri);
The variable name (e.g., "temperature").
The valid time step for the dataset.
Optional
ext: "webp" = "webp"File extension (must be 'webp').
Get the variable meta from the instanced dataset.
variable - variable name
instance - instance name
Optional
instance: stringFinds the nearest valid time in the dataset based on the input.
time
is an empty string, the last available time is returned.time
is a string matching a valid time, that time is returned.time
is a number:const nearestTime = wxDatasetManager.getNearestValidTime("2024-06-10T12:00:00Z");
console.log(nearestTime); // Closest valid time
Optional
time: WxDate = ...Input time as a string, number, or Date object.
Generated using TypeDoc
Class for managing a WX dataset and its related operations.
Instances of this class handle metadata, variables, valid times, zoom levels, and URI construction for WX datasets. @metoceanapi/wxtiles-common/managers/BaseDatasetManager/BaseDatasetManager
Usage Note: Do not create instances directly using the constructor. Use createDatasetManager instead.
Example