mapbox-maps-android icon indicating copy to clipboard operation
mapbox-maps-android copied to clipboard

Set layer property "raster-opacity" failed: Layer "custom_id" is not in style

Open Ashok-Media opened this issue 1 year ago • 1 comments

Environment

  • Android OS version: All versions
  • Devices affected: samsung s20
  • Maps SDK Version: 10.5.0

Observed behavior and steps to reproduce

sometimes I am getting crash at (below line) currentLayer.rasterOpacity(layerOpacity)

the error message is: com.mapbox.maps.MapboxStyleException: Set layer property "raster-opacity" failed: Layer "layer_id" is not in style

Expected behavior

It should not crash

Ashok-Media avatar Dec 27 '23 04:12 Ashok-Media

Thanks for the report. Could you share a project that demonstrates the issue, or if it can't be reproduced consistently can you share the code you use to create/load and access the style?

baleboy avatar Jan 08 '24 11:01 baleboy