Created
August 19, 2025 21:04
-
-
Save dzole0311/dbb75e6b6e93f4a6c2faebec095af8ee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function () { | |
| if (window.deck && window.WeatherLayers && window.deck.JSONConverter) { | |
| try { | |
| const layers = [ | |
| 'ParticleLayer', | |
| 'RasterLayer', | |
| 'ContourLayer', | |
| 'HighLowLayer', | |
| 'FrontLayer', | |
| 'GridLayer' | |
| ]; | |
| layers.forEach(name => { | |
| const cls = window.WeatherLayers[name]; | |
| if (cls) { | |
| window.deck.JSONConverter.registerClass(cls); | |
| console.log(`[shim] Registered WeatherLayers.${name}`); | |
| } | |
| }); | |
| } catch (err) { | |
| console.error('[shim] Failed to register WeatherLayers layers', err); | |
| } | |
| } else { | |
| console.warn('[shim] deck.gl or WeatherLayers not available yet'); | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment