From 1dbb030e4b4f8d509a9f92774b157a2c86fb3e25 Mon Sep 17 00:00:00 2001 From: Shane Laymance Date: Wed, 6 Jul 2022 16:18:31 -0700 Subject: [PATCH] Update geo docs to reference maplibre-v2 --- src/fragments/lib/geo/js/geofences.mdx | 4 ++-- src/fragments/lib/geo/js/maps.mdx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/fragments/lib/geo/js/geofences.mdx b/src/fragments/lib/geo/js/geofences.mdx index faaa09589a..fd2e9c6a60 100644 --- a/src/fragments/lib/geo/js/geofences.mdx +++ b/src/fragments/lib/geo/js/geofences.mdx @@ -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/). diff --git a/src/fragments/lib/geo/js/maps.mdx b/src/fragments/lib/geo/js/maps.mdx index e538204ac3..9eb7f3192f 100644 --- a/src/fragments/lib/geo/js/maps.mdx +++ b/src/fragments/lib/geo/js/maps.mdx @@ -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 ``` 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/).