Function wmsSource

  • Adapter factory for a WMS 1.3.0 endpoint.

    The canonical Source.query() is implemented through point-only GetFeatureInfo. Reach Source.protocol("wms") for raw GetMap / GetLegendGraphic access (with TIME / ELEVATION dimension handling and CRS axis-order swap per WMS 1.3 ยง6.7.3.2).

    Type Parameters

    • T

    Parameters

    Returns CapabilityAwareSource<T>

    const wms = dataset.source("usgs-imagery")!.protocol("wms");
    const png = await wms!.getMap({
    layers: ["topo"], bbox: [-158, 21, -157, 22], crs: "EPSG:4326",
    width: 512, height: 512,
    });