You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's currently no API for updating the image associated with a particular ID. gl-native allows updating an image via addImage, but in gl-js that triggers an error.
Fails when enabled and running e.g. yarn test-render image-update-icon:
Error: Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`
at Map.updateImage (/Users/astojilj/mapbox-gl-js/src/ui/map.js:1669:45)
at applyOperations (/Users/astojilj/mapbox-gl-js/test/suite_implementation.js:181:34)
at wait (/Users/astojilj/mapbox-gl-js/test/suite_implementation.js:139:25)
at applyOperations (/Users/astojilj/mapbox-gl-js/test/suite_implementation.js:144:17)
at Map.<anonymous> (/Users/astojilj/mapbox-gl-js/test/suite_implementation.js:82:9)
at Map.fire (/Users/astojilj/mapbox-gl-js/src/util/evented.js:125:26)
at Map._render (/Users/astojilj/mapbox-gl-js/src/ui/map.js:2481:18)
at Immediate._onImmediate (/Users/astojilj/mapbox-gl-js/src/ui/map.js:2599:22)
at processImmediate (internal/timers.js:458:21)
at process.topLevelDomainCallback (domain.js:137:15)
* failed runtime-styling/image-update-icon
There's currently no API for updating the image associated with a particular ID. gl-native allows updating an image via
addImage
, but in gl-js that triggers an error.When implementing this, care should be taken to avoid the gl-js equivalents of mapbox/mapbox-gl-native#6536 and mapbox/mapbox-gl-native#7618.
The text was updated successfully, but these errors were encountered: