--- layout: example.html title: Sea Level shortdesc: Render sea level at different elevations docs: >

This example uses a ol/source/Raster with Mapbox Terrain-RGB tiles to "flood" areas below the elevation shown on the sea level slider.

ol/source/Raster can take either a tile source or layer. In this case a layer is used to allow disabling at the prerender event of image smoothing which would change the precise elevation values set in the pixels.

tags: "raster, pixel operation, flood" cloak: - key: get_your_own_D6rA4zTHduk6KOKTXzGB value: Get your own API key at https://www.maptiler.com/cloud/ ---

Go to San Francisco, New York, Mumbai, or Shanghai