Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layer not visible on Map #23

Open
pandeyshashank opened this issue Sep 17, 2019 · 3 comments
Open

Layer not visible on Map #23

pandeyshashank opened this issue Sep 17, 2019 · 3 comments

Comments

@pandeyshashank
Copy link

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.

Screen Shot 2019-09-17 at 1 29 27 PM

@pandeyshashank
Copy link
Author

used the same data that is used in the demo

@owl1n
Copy link

owl1n commented Dec 21, 2019

Did u fix it?

@scottbasgaard
Copy link

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>
  );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants