mapbox-gl-js
mapbox-gl-js copied to clipboard
safari raster color issue
mapbox-gl-js version: v3.4.0
browser: safari
Steps to trigger behavior
- Load attached grayscale image as image layer.
- colorize the image using the attached json with raster color array
Screenshots Chrome (as expected)
Safari (bug)original image
Description I loaded the original image as image layer and user the attached raster color json file to generate raster color expression.
let paint: mapboxgl.RasterPaint = { "raster-opacity": 1, "raster-resampling": "linear", "raster-fade-duration": 0, "raster-color": ["interpolate", ["linear"], ["raster-value"], ...colors], "raster-emissive-strength": 1, }; return [ { id: this.id, type: "raster", source: this.id, paint, }, ] as RasterLayer[]; }