-
Notifications
You must be signed in to change notification settings - Fork 539
Open
Description
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.
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,
peadarDoyle and mch-weevaa
Metadata
Metadata
Assignees
Labels
No labels