Javascript – Using discrete colors for map fill in mapboxgl instead of default interpoolated colors?
The way I've typically seen mapboxgl fill properties work on choropleth maps is something like this: map.on('load', function () { map.addSource('bb', { type: 'geojson', data: data, generateId: true}); map.addLayer({ 'id': 'berlin', 'type': 'fill', 'source': 'bb', 'paint': { 'fill-color': { 'property':…