Skip to content

Commit

Permalink
Merge pull request #4446 from slaymance/maplibre-v2
Browse files Browse the repository at this point in the history
docs(geo): Update docs to reference maplibre-gl v2 peer dependency
  • Loading branch information
arundna committed Jul 7, 2022
2 parents 9f3df00 + f6373c6 commit cb50691
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/fragments/lib/geo/js/geofences.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ To add a geofence management component to your map, you can use the [amplify-geo
Install the necessary dependencies with the following command:

```bash
npm install maplibre-gl@1 maplibre-gl-js-amplify aws-amplify @aws-amplify/ui-react
npm install maplibre-gl maplibre-gl-js-amplify aws-amplify @aws-amplify/ui-react
```

> **Note:** Make sure that `maplibre-gl-js-amplify` version `1.6.0` or above and `@aws-amplify/geo` version `1.3.0` or above are installed.
> **Note:** Make sure that `maplibre-gl-js-amplify` version `2.0.0` or above and `@aws-amplify/geo` version `1.3.0` or above are installed.
First, create a map onto which you want to add the geofence management component. See the guide on [creating and displaying maps](https://docs.amplify.aws/lib/geo/maps/q/platform/js/).

Expand Down
4 changes: 2 additions & 2 deletions src/fragments/lib/geo/js/maps.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ To render a map, the [MapLibre GL](https://github.com/maplibre/maplibre-gl-js) a
Add the dependencies to your app:

```bash
npm install maplibre-gl@1 maplibre-gl-js-amplify
npm install maplibre-gl maplibre-gl-js-amplify
```

<Callout>

Verify the following:
- `maplibre-gl-js-amplify` version `1.1.0` or above is installed
- `maplibre-gl-js-amplify` version `2.0.0` or above is installed
- Any package bundlers (webpack, rollup, etc) are configured to handle css files. Check out the webpack documentation [here](https://webpack.js.org/loaders/css-loader/).

</Callout>
Expand Down

0 comments on commit cb50691

Please sign in to comment.