-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'beta' into feat/remove-maplibre-gl
# Conflicts: # docs/components/BackgroundLayer.md # docs/components/CircleLayer.md # docs/components/FillExtrusionLayer.md # docs/components/FillLayer.md # docs/components/HeatmapLayer.md # docs/components/LineLayer.md # docs/components/MapView.md # docs/components/RasterLayer.md # docs/components/SymbolLayer.md # docs/docs.json # packages/examples/src/examples/UserLocation/FollowUserLocationRenderMode.tsx # src/MLRNModule.ts # src/components/MapView.tsx
- Loading branch information
Showing
20 changed files
with
166 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
# Migrating to v10 | ||
|
||
## Changes to `Camera` Component | ||
|
||
### Default `animationMode` is now `CameraMode.None` | ||
|
||
The default `animationMode` for a controlled `Camera` is now `CameraMode.None`. To reinstate previous behavior, change the following: | ||
|
||
```diff | ||
<Camera | ||
centerCoordinates={[0, 0]} | ||
+ animationDuration={2000} | ||
+ animationMode="easeTo" | ||
/> | ||
``` | ||
|
||
### Removed `allowUpdates` and `triggerKey` Props | ||
|
||
If you need this functionality, keep your props stable or use the imperative `setCamera`. | ||
|
||
```diff | ||
<Camera | ||
centerCoordinates={[0, 0]} | ||
- allowUpdates={false} | ||
- triggerKey={someKey} | ||
/> | ||
``` | ||
|
||
## `MapView` props `styleURL` and `styleJSON` unified to `mapStyle` | ||
|
||
The props `styleURL` and `styleJSON`, which control the style of the `MapView`, have been unified into a single `mapStyle` prop. | ||
|
||
### `styleURL` | ||
|
||
```diff | ||
<MapView | ||
- styleURL="https://some-style-url" | ||
+ mapStyle="https://some-style-url" | ||
/> | ||
``` | ||
|
||
### `styleJSON` | ||
|
||
A style object is now expected as an object, without `JSON.stringify`. | ||
|
||
```diff | ||
<MapView | ||
- styleJSON={JSON.stringify(someStyleObject)} | ||
+ mapStyle={someStyleObject} | ||
/> | ||
``` | ||
|
||
## Removed `Style` component | ||
|
||
The `Style` component was redundant, as it's possible to pass a style object to the `MapView` directly. | ||
|
||
```diff | ||
- <MapView> | ||
- <Style json={someStyleObject} /> | ||
- </MapView> | ||
+ <MapView mapStyle={someStyleObject} /> | ||
``` | ||
|
||
## Replaced `OfflineProgressStatus` with `OfflinePackStatus` | ||
|
||
The two types have been unified. Simply replace `OfflineProgressStatus` with `OfflinePackStatus`. | ||
|
||
# Removed deprecated Methods, Props and Types | ||
|
||
- `UserTrackingModes` was removed, use `UserTrackingMode` instead | ||
- Removed `setCamera` from `MapView`, use imperative methods of `Camera` instead | ||
- Removed `byId` methods from ShapeSource | ||
- Removed `children` from SymbolSource | ||
- Removed `assets` key from `Images` | ||
- Removed deprecated event keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.