You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Improve accuracy at long distances for `coordsToVector3`.
6
+
- Improve translation accuracy for `NearCoordinates`, but scale is still ignored.
7
+
- Update `earthRadius` from `6378137` to `6371008.8` to match [Mapbox](https://github.com/maplibre/maplibre-gl-js/blob/8ea76118210dd18fa52fdb83f2cbdd1229807346/src/geo/lng_lat.ts#L8) and [Maplibre](https://github.com/maplibre/maplibre-gl-js/blob/main/src/geo/lng_lat.ts#L8).
Same as `Coordinates`, but with an error margin that increases the further you are from the origin.
201
+
Same as `Coordinates`, but scale is ignored in exchange of being able to be rendered under the same scene.
202
202
203
-
Recommended to use at city level distances, but margin errors will be noticeable at country level distances.
203
+
Works well at city level distances, but since scale remains unchanged, is not recommended at country level distances.
204
204
205
-
Check the story to see the difference between the two.
205
+
Check the story to see the difference between the two or check #102 for more info.
206
206
207
207
### useMap
208
208
@@ -224,7 +224,7 @@ const Component = () => {
224
224
225
225
This utility function converts geographic coordinates into a `Vector3Tuple`, which represents a 3D vector in meters.
226
226
227
-
Similar to `NearCoordinates` it has a relatively good precision at city distances, but is not recommended if your distances are too big.
227
+
Similar to `NearCoordinates`, remember that this only updates positions (translation) but that scale is not taken into account, which has an important factor at very long distances (country level).
228
228
229
229
230
230
| Parameter | Description |
@@ -240,7 +240,9 @@ Returns a `Vector3Tuple` representing the 3D position of the point relative to t
240
240
241
241
This utility function converts a `Vector3Tuple`, which represents a 3D vector in meters, back into geographic coordinates.
242
242
243
-
It is the inverse of `coordsToVector3` and maintains the same level of precision. It is not recommended for use with very large distances.
243
+
It is the inverse of `coordsToVector3` but it does not have a good level of precision at long distances since we haven't reverse engineered #102 fix yet.
244
+
245
+
Recommended to use at city level distances, but margin errors will be noticeable at country level distances.
0 commit comments