react-three-map icon indicating copy to clipboard operation
react-three-map copied to clipboard

Layer with id "jsx-layer-0" already exists on this map

Open Igor-Vuk opened this issue 1 year ago • 1 comments

With the new mapbox-gl 3.5.2 version I keep getting error Layer with id "jsx-layer-0" already exists on this map" that is triggered by Canvas from react-three-map. By using mapbox-gl version 3.5.1 everything is ok.

Igor-Vuk avatar Jul 27 '24 19:07 Igor-Vuk

@Igor-Vuk would you be able to provide a sandbox to reproduce?

You can start by forking from this one: https://codesandbox.io/p/sandbox/react-three-map-gettings-started-dhw34w

Thanks!

RodrigoHamuy avatar Aug 08 '24 09:08 RodrigoHamuy

seams to be fixed with the latest version of mapbox-gl 3.6.0

Igor-Vuk avatar Aug 17 '24 23:08 Igor-Vuk