mapbox / mapbox-gl-draw

Draw tools for mapbox-gl-js
https://www.mapbox.com/mapbox-gl-js/example/mapbox-gl-draw/
ISC License
949 stars 592 forks source link

Draw controls under Deck GL GridCellLayer #1270

Open rmruss2022 opened 3 months ago

rmruss2022 commented 3 months ago

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