RodrigoHamuy / react-three-map

Use React and Three.js inside Mapbox and Maplibre
https://rodrigohamuy.github.io/react-three-map/
MIT License
208 stars 29 forks source link

fix on DPR changes #79

Closed RodrigoHamuy closed 1 year ago

RodrigoHamuy commented 1 year ago

Steps: On any story, use Browser zoom or change DPR through DevTools by swapping between mobile and desktop view. Expected: Things should work as usual. Previously: Render looks weird.

The issue is more obvious on "Comparison" story.

The issue only happens on Mapbox stories, or if you update MapLibre to newer versions.

Previously: image

Expected: image

changeset-bot[bot] commented 1 year ago

🦋 Changeset detected

Latest commit: 3d03c525375494af9a59c3fbea118457a6ce20c4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | --------------- | ----- | | react-three-map | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

codesandbox-ci[bot] commented 1 year ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 3d03c525375494af9a59c3fbea118457a6ce20c4:

Sandbox Source
example-mapbox Configuration
example-maplibre Configuration
stories Configuration