Open pandeyshashank opened 4 years ago
used the same data that is used in the demo
Did u fix it?
Same issue:
const onMapLoad = (e) => {
const { target: map } = e;
map.addLayer(particles({
id: 'particles',
source: windSource,
}));
};
return (
<div className="map-container">
<DeckGL
ref={deckRef}
layers={renderLayers()}
effects={[lightingEffect]}
initialViewState={viewport}
controller
onWebGLInitialized={onWebGLInitialized}
>
{_glState && (
<StaticMap
onLoad={e => onMapLoad}
mapStyle={MAPBOX_STYLE}
mapboxApiAccessToken={MAPBOX_TOKEN}
/>
)}
<Icon menus updateMenus={updateMenus} />
</DeckGL>
</div>
);
Added the sampleFill and particles layer on map. But it's not showing on the map. However I am able to get the layer with map.getLayer but not on map.