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

Map is not Rendering only in Safari #346

Open
kennethbigler opened this issue Oct 19, 2023 · 2 comments
Open

Map is not Rendering only in Safari #346

kennethbigler opened this issue Oct 19, 2023 · 2 comments

Comments

@kennethbigler
Copy link

Here is my implementation:
https://github.com/kennethbigler/react-home/blob/main/src/components/resume/travel-map/WorldMap.tsx

This renders fine in Chrome, but will not render in Safari on Mac or Mobile.
This is a regression as it used to work fine for Safari with no code changes.

@HarryHung
Copy link

The answer solved the issue for me on Safari:
https://stackoverflow.com/questions/64449042/svg-using-react-simple-maps-not-displaying-on-mobile

by adding a property of style={{width: "100%"}} to <ComposableMap>, the issue now seems to be resolved! This SHOULD NOT replace the width="1200" property

@kennethbigler
Copy link
Author

This fix worked for me, although I still thing it is an issue that should be fixed :)

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