Skip to content

Is GL JS v3 supported ? #1025

@zcharef

Description

@zcharef

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions