Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is GL JS v3 supported ? #1025

Open
zcharef opened this issue Aug 15, 2023 · 1 comment
Open

Is GL JS v3 supported ? #1025

zcharef opened this issue Aug 15, 2023 · 1 comment

Comments

@zcharef
Copy link

zcharef commented Aug 15, 2023

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,

@mch-weevaa
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants