Raster Source

This map shows how to use raster sources on the map. Data from UK-AIR.

Pollution layer
svelte
<MapLibre
  style="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json"
  class={mapClasses}
  standardControls
  bounds={[-5.96, 49.89, 2.31, 55.94]}
>
  <RasterTileSource tiles={[url]} tileSize={256}>
    <RasterLayer
      paint={{
        'raster-opacity': 0.5,
      }}
    />
  </RasterTileSource>
</MapLibre>

Back to Examples

Github