react-mapbox-gl icon indicating copy to clipboard operation
react-mapbox-gl copied to clipboard

Is GL JS v3 supported ?

Open zcharef opened this issue 2 years ago • 1 comments

Hello,

I would like to know if the new Mapbox GL JS v3 is supported (https://www.mapbox.com/blog/standard-core-style) ? As you may know, Mapbox just released in beta a new "Standard style" map. image

I'd like to know if anyone knows how to make this work? I already tried upgrading to the mapbox-gl v3.0.0-beta.1 and adding the following (according to https://github.com/mapbox/mapbox-gl-js/blob/main/MIGRATION_GUIDE_v3.md) :

  const handleMapLoad = (event: any) => {
    mapboxGLRef.current = event.target;
    resizeMap();
      mapboxGLRef.current.on('style.load', () => {
        mapboxGLRef.current.setConfigProperty('basemap', 'lightPreset', 'dusk');
      
        
    });
    setTimeout(() => {
      setMapLoaded(true);
    }, 1000);
  };

Regards,

zcharef avatar Aug 15 '23 23:08 zcharef

Hey did you ever figure this out? I would also love to use that map!!!

mch-weevaa avatar Jan 16 '24 16:01 mch-weevaa