Files
MapLibreParticleLab/integration/react-native/MapLibreParticleRNTestHost/src/weatherStyle.ts
2026-09-07 16:09:50 +08:00

22 lines
1.0 KiB
TypeScript

/** No field is embedded here: RasterArraySource is reserved for STEP-061 binary submission. */
export const WEATHER_SOURCE_ID = "rn-weather-fields";
export const WEATHER_COLOR_LAYER_ID = "rn-weather-color";
export const PARTICLE_LAYER_ID = "rn-weather-particles";
export const weatherTestStyle = JSON.stringify({
version: 8,
sources: {
[WEATHER_SOURCE_ID]: { type: "raster-array", "host-field-submission": true }
},
layers: [
{ id: "rn-basemap", type: "background", paint: { "background-color": "#10243a" } },
{ id: WEATHER_COLOR_LAYER_ID, type: "weather-color", source: WEATHER_SOURCE_ID,
paint: { "weather-color-opacity": 0.62 } },
{ id: PARTICLE_LAYER_ID, type: "raster-particle", source: WEATHER_SOURCE_ID,
paint: { "raster-particle-active": true, "raster-particle-particle-count": 4096,
"raster-particle-line-width": 1.5, "raster-particle-particle-length": 0.012,
"raster-particle-particle-opacity": 0.9, "raster-particle-trail-opacity": 0.8,
"raster-particle-trail-fade": 0.94 } }
]
});