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

Draw controls under Deck GL GridCellLayer #1270

Open
rmruss2022 opened this issue Aug 5, 2024 · 0 comments
Open

Draw controls under Deck GL GridCellLayer #1270

rmruss2022 opened this issue Aug 5, 2024 · 0 comments

Comments

@rmruss2022
Copy link

rmruss2022 commented Aug 5, 2024

How can we enable draw controls on top of deckgl layers? Draw selection is currently under my GridCellLayer in DeckGL. I'm using mapbox overlay with deckgl. How can I change this ordering?

function DeckGLOverlay(props: any) {
  const overlay = useControl<MapboxOverlay>(() => new MapboxOverlay(props));
  overlay.setProps(props);
  return null;
}

<Map
        reuseMaps
        mapboxAccessToken={}
        mapStyle={MAP_STYLE}
        ref={map}
        initialViewState={viewState}
        viewState={viewState}
        onMove={handleViewStateChange}
      >

        <DeckGLOverlay
          layers={layers}
          interleaved={true}
        />
      </Map>
Screenshot 2024-08-05 at 5 34 16 PM
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

1 participant