Skip to content

MapboxOverlay interleaved and onClick argument #8885

Closed Answered by kaorukitao
kaorukitao asked this question in Q&A
Discussion options

You must be logged in to vote

I found the cause of problem.

not displayed

const map = new MapLibreGL.Map({ ... });
map.once( "load", () => {
  const deckOverlay= new MapboxOverlay({
    interleaved: false,
    layers: []
  });
  map.addControl( deckOverlay );
  //create layers using deckOverlay._deck.device.createBuffer()
});

Maybe the timing to create deckOverlay._deck.device.

displayed

const map = new MapLibreGL.Map({ ... });
const deckOverlay= new MapboxOverlay({
  interleaved: false,
  layers: []
});
map.addControl( deckOverlay );
map.once( "load", () => {
  //create layers using deckOverlay._deck.device.createBuffer()
});

I tried to investigate the difference between pointed sample and my script, and found.
Tha…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@kaorukitao
Comment options

@Pessimistress
Comment options

@kaorukitao
Comment options

Answer selected by kaorukitao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants