- 9dfe4f6: Remove
turf
dependency. - 9dfe4f6: Map to wait for r3f to finish rendering before the next render in overlay mode.
- 7e1743d: - Peer dependency upgrade:
maplibre-gl
:>=3.2
, so we don't need to sortmaplibre
old DPR bug anymore.- Add
overlay?: boolean
to<Canvas>
, so you can render on a separated canvas if preferred. - Add
NearCoordinates
component. - Add
coordsToVector3
function.
- Add
- 90a4766: Fix bug on DPR change.
- 2115617: Revert 748d7a7: Fix issues on DPR or browser zoom changes.
- 1c52c0f:
<Canvas>
props acceptsid?: string
andbeforeId?: string
to set the MapLibre/Mapbox layer.
- 748d7a7: Fix issues on DPR or browser zoom changes.
- a5b94b6: Fix ThreeJS sync on Mapbox resize.
- 6be61b6: Fix on window DPR changes (different solutions for Mapbox and Maplibre)
- be1efa7: Fix resizing bug when DPR changes.
- 3a9a852: Add
useMap
hook to access the map from react-three-map.
- 3a9a852: Better type for
useMap
.
- 7921f43: Add
useMap
hook to access the map from react-three-map.
- 0e37c1c: Fix canvas on resize.
- bd62ef9: Simplify raycaster calculations.
- 41dd225: Improve camera decomposition so the camera matrix and world matrix have more useful values.
- bad8670: Add
<Coordinates>
component to render multiple 3D objects at different coordiantes.
- 9b1c068: Fix camera matrix calculations.
- 4dd8a72: Fix types declaration path.
- 7e94458: Generate types declarations.
- b169844: Bug fix related to DPR devices and pointer events.
- 39acb3b: Fix build typo and add more detailed peer dependencies.
- f3155c6: Upgrade to
react-map-gl@7.1.0
, which changes how to use Maplibre. Find more in their changelog.
- 71d6439: Fix maplibre build
-
b210a12: Support to render
react-three-map
on demand via<Canvas frameloop="ondemand">
-
557920a: Add Mapbox support.
- If you use Mapbox
import { Canvas } from "react-three-map"
- If you use Maplibre
import { Canvas } from "react-three-map/maplibre"
- If you use Mapbox
- 83de85c: Fix camera matrix bug where it may have invalid state on start.