Skip to main content
100%

Display a map

✓ Published0🌍 Public
Aandyrutkowski
Last edited Aug 30, 2018
Created on Aug 30, 2018

A map centered on Los Angeles displays a raster layer with an adjustable opacity slider. The example uses the Mapbox GL JS library to render the map and the `map.setPaintProperty` method with `raster-opacity` to control layer transparency. A slider input updates the opacity value, while a click event on the map triggers a popup showing the name and type of a feature from a layer called `47greenbook-dapl9g`. The map style and raster source come from Mapbox-hosted data.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes