mapbox-gl-js icon indicating copy to clipboard operation
mapbox-gl-js copied to clipboard

safari raster color issue

Open kaycsailesh opened this issue 2 weeks ago • 0 comments

mapbox-gl-js version: v3.4.0

browser: safari

Steps to trigger behavior

  1. Load attached grayscale image as image layer.
  2. colorize the image using the attached json with raster color array

Screenshots chrome Chrome (as expected)

safari Safari (bug)

2024-06-24T17-00-00 000Z original image

rasterColor.json

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[]; }

kaycsailesh avatar Jun 24 '24 16:06 kaycsailesh