WeatherLayers
DemoIntegrationsDocsStatus
  • Overview
  • WeatherLayers GL
    • Quick Start
    • Layers
      • Particle Layer
      • Raster Layer
      • Contour Layer
      • HighLow Layer
      • Front Layer
      • Grid Layer
      • Data Loading
      • Data Properties
      • Style Properties
    • Controls
      • Legend Control
      • Timeline Control
      • Tooltip Control
      • Attribution Control
      • Logo Control
      • Control
    • Types
    • Functions
    • Data Sources
    • Security
    • Troubleshooting
    • Pricing
    • Changelog
    • Roadmap
  • WeatherLayers Cloud
    • Quick Start
    • Client
    • Types
    • Security
    • Troubleshooting
    • Datasets
    • Pricing
    • Changelog
    • Roadmap
  • Contact
Powered by GitBook
On this page
  • Layers can't be enabled after disabling in MapLibre/Mapbox interleaved mode
  • HighLowLayer doesn't display in MapLibre/Mapbox interleaved mode
  1. WeatherLayers GL

Troubleshooting

Last updated 1 year ago

Layers can't be enabled after disabling in MapLibre/Mapbox interleaved mode

Issue

Layers can't be reused, they need to be recreated.

Symptoms

After deck.MapboxOverlay is added to the map with maplibregl.Map.addControl and removed from the map with maplibregl.Map.removeControl, adding it back again with maplibregl.Map.addControl doesn't render any layers.

Solution

After removing deck.MapboxOverlay from the map with maplibregl.Map.removeControl, remove layers as well with deck.MapboxOverlay.setProps({ layers: [] }).

After adding deck.MapboxOverlay to the map with maplibregl.Map.addControl, add layers with deck.MapboxOverlay.setProps({ layers: [...all layers...] }).

HighLowLayer doesn't display in MapLibre/Mapbox interleaved mode

Issue

HighLowLayer uses deck.gl CollisionFilterExtension, which has a known unresolved bug that it can't be used after bitmap layers (RasterLayer, ContourLayer).

Symptoms

HighLowLayer doesn't display.

Solution

Move HighLowLayer to be before bitmap layers (RasterLayer, ContourLayer), and offset it with getPolygonOffset: () => [0, -1000].

https://github.com/visgl/deck.gl/issues/7864