Skip to content

[Bug] Map not rendered in Safari with web inspector tools open #2503

Open
@yonitou

Description

@yonitou

Description

On Safari, maps from Mapbox have a lot of issues that make this package unusable :

  • The layers don't appear
  • The styles are not loading properly

Here is a very minimal MRE using Safari 18.3.1

const App = (): JSX.Element => {
  return	( 
    <Map
	mapboxAccessToken={TOKEN}
	mapStyle="mapbox://styles/mapbox/dark-v9">
    </Map>
  );
}

const container = document.getElementById("root");
const root = createRoot(container);
root.render(
	<StrictMode>
		<App />
	</StrictMode>

Results with some different styles :

With mapStyle="mapbox://styles/mapbox/dark-v9"

Image

With mapStyle="mapbox://styles/mapbox/standard" :

Image

With mapStyle="mapbox://styles/mapbox/streets-v12"

Image

Expected Behavior

The map should work normally on Safari

Steps to Reproduce

  1. Copy paste the code above
  2. Launch Safari and try it

Environment

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions