diff --git a/docs/README.md b/docs/README.md index 3903fa2a..b12f598e 100644 --- a/docs/README.md +++ b/docs/README.md @@ -3,8 +3,8 @@
These docs are for
-
- Use Mapbox GL JS' built-in functions to visualize points as clusters. Customize the cursor based on interactivity. Hover over counties to highlight counties that share the same name. Render animation by updating GeoJSON data source. Turn interactive features off/on. Dynamically show/hide map layers and change color with Immutable map style. Smooth animate of the viewport.
+
+
Looking for an old version?
diff --git a/docs/api-reference/attribution-control.md b/docs/api-reference/attribution-control.md
index 56c14cb8..abf5f8cc 100644
--- a/docs/api-reference/attribution-control.md
+++ b/docs/api-reference/attribution-control.md
@@ -84,4 +84,4 @@ Placement of the control relative to the map.
## Source
-[attribution-control.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/attribution-control.ts)
+[attribution-control.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/attribution-control.ts)
diff --git a/docs/api-reference/fullscreen-control.md b/docs/api-reference/fullscreen-control.md
index a40fe3b7..7204adbf 100644
--- a/docs/api-reference/fullscreen-control.md
+++ b/docs/api-reference/fullscreen-control.md
@@ -78,4 +78,4 @@ Placement of the control relative to the map.
## Source
-[fullscreen-control.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/fullscreen-control.ts)
+[fullscreen-control.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/fullscreen-control.ts)
diff --git a/docs/api-reference/geolocate-control.md b/docs/api-reference/geolocate-control.md
index c4c2dec4..f91585d9 100644
--- a/docs/api-reference/geolocate-control.md
+++ b/docs/api-reference/geolocate-control.md
@@ -163,4 +163,4 @@ function App() {
## Source
-[geolocate-control.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/geolocate-control.ts)
+[geolocate-control.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/geolocate-control.ts)
diff --git a/docs/api-reference/layer.md b/docs/api-reference/layer.md
index f4c4a881..0ae20d89 100644
--- a/docs/api-reference/layer.md
+++ b/docs/api-reference/layer.md
@@ -109,4 +109,4 @@ Note that layers are added by the order that they mount. They are *NOT* reordere
## Source
-[layer.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/layer.ts)
+[layer.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/layer.ts)
diff --git a/docs/api-reference/map-provider.md b/docs/api-reference/map-provider.md
index 4888a51b..25459858 100644
--- a/docs/api-reference/map-provider.md
+++ b/docs/api-reference/map-provider.md
@@ -23,4 +23,4 @@ See [useMap](./use-map.md) for more information.
## Source
-[use-map.tsx](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/use-map.tsx)
+[use-map.tsx](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/use-map.tsx)
diff --git a/docs/api-reference/map.md b/docs/api-reference/map.md
index ffd46768..cbfddf3e 100644
--- a/docs/api-reference/map.md
+++ b/docs/api-reference/map.md
@@ -623,4 +623,4 @@ Returns the native `Map` ([Mapbox](https://docs.mapbox.com/mapbox-gl-js/api/map/
## Source
-[map.tsx](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/map.tsx)
+[map.tsx](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/map.tsx)
diff --git a/docs/api-reference/marker.md b/docs/api-reference/marker.md
index f7a27435..95bcd91e 100644
--- a/docs/api-reference/marker.md
+++ b/docs/api-reference/marker.md
@@ -213,4 +213,4 @@ function App() {
## Source
-[marker.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/marker.ts)
+[marker.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/marker.ts)
diff --git a/docs/api-reference/navigation-control.md b/docs/api-reference/navigation-control.md
index 9b4be43e..d4a11864 100644
--- a/docs/api-reference/navigation-control.md
+++ b/docs/api-reference/navigation-control.md
@@ -83,4 +83,4 @@ Placement of the control relative to the map.
## Source
-[navigation-control.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/navigation-control.ts)
+[navigation-control.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/navigation-control.ts)
diff --git a/docs/api-reference/popup.md b/docs/api-reference/popup.md
index 71261af3..df5feaf6 100644
--- a/docs/api-reference/popup.md
+++ b/docs/api-reference/popup.md
@@ -188,4 +188,4 @@ function App() {
## Source
-[popup.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/popup.ts)
+[popup.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/popup.ts)
diff --git a/docs/api-reference/scale-control.md b/docs/api-reference/scale-control.md
index 20018ea5..66ea5fc2 100644
--- a/docs/api-reference/scale-control.md
+++ b/docs/api-reference/scale-control.md
@@ -89,4 +89,4 @@ Placement of the control relative to the map.
## Source
-[scale-control.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/scale-control.ts)
+[scale-control.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/scale-control.ts)
diff --git a/docs/api-reference/source.md b/docs/api-reference/source.md
index 910549b3..8261322e 100644
--- a/docs/api-reference/source.md
+++ b/docs/api-reference/source.md
@@ -112,4 +112,4 @@ Required. Type of the source.
## Source
-[source.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/source.ts)
+[source.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/source.ts)
diff --git a/docs/api-reference/use-control.md b/docs/api-reference/use-control.md
index 9426eef8..aa0a51d8 100644
--- a/docs/api-reference/use-control.md
+++ b/docs/api-reference/use-control.md
@@ -85,4 +85,4 @@ Returns:
## Source
-[use-control.ts](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/use-control.ts)
+[use-control.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/use-control.ts)
diff --git a/docs/api-reference/use-map.md b/docs/api-reference/use-map.md
index 26fc19b4..7ee5f457 100644
--- a/docs/api-reference/use-map.md
+++ b/docs/api-reference/use-map.md
@@ -123,7 +123,7 @@ function NavigateButton() {
-See a full example [here](https://github.com/visgl/react-map-gl/tree/7.0-release/examples/get-started/hook).
+See a full example [here](https://github.com/visgl/react-map-gl/tree/7.1-release/examples/get-started/hook).
## Signature
@@ -135,4 +135,4 @@ If the hook is used inside a decendent of a `Map` component, the returned object
## Source
-[use-map.tsx](https://github.com/visgl/react-map-gl/tree/7.0-release/src/components/use-map.tsx)
+[use-map.tsx](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/use-map.tsx)
diff --git a/docs/get-started/adding-custom-data.md b/docs/get-started/adding-custom-data.md
index b3f5d275..3d8ae39e 100644
--- a/docs/get-started/adding-custom-data.md
+++ b/docs/get-started/adding-custom-data.md
@@ -49,7 +49,7 @@ For dynamically updating data sources and layers, check out the [GeoJSON](http:/
## Custom Overlays
-You can implement a custom HTML or SVG overlay on top of the map that redraws whenever the camera changes. By calling `map.project()` you can adjust the DOM or CSS properties so that the customly-drawn features are always aligned with the map. See a full example [here](https://github.com/visgl/react-map-gl/tree/7.0-release/examples/custom-overlay).
+You can implement a custom HTML or SVG overlay on top of the map that redraws whenever the camera changes. By calling `map.project()` you can adjust the DOM or CSS properties so that the customly-drawn features are always aligned with the map. See a full example [here](https://github.com/visgl/react-map-gl/tree/7.1-release/examples/custom-overlay).
## Other vis.gl Libraries
diff --git a/docs/get-started/get-started.md b/docs/get-started/get-started.md
index 72426694..95ba7e2a 100644
--- a/docs/get-started/get-started.md
+++ b/docs/get-started/get-started.md
@@ -1,6 +1,6 @@
# Get Started
-You may find complete project setups in [get-started examples](https://github.com/visgl/react-map-gl/tree/7.0-release/examples/get-started).
+You may find complete project setups in [get-started examples](https://github.com/visgl/react-map-gl/tree/7.1-release/examples/get-started).
## Installation
diff --git a/docs/get-started/state-management.md b/docs/get-started/state-management.md
index 7b0a7e28..db272f29 100644
--- a/docs/get-started/state-management.md
+++ b/docs/get-started/state-management.md
@@ -8,7 +8,7 @@ There are two ways to use a [Map](../api-reference/map.md):
## Uncontrolled Map
-You may clone a full app configuration for this example [here](https://github.com/visgl/react-map-gl/tree/7.0-release/examples/get-started/basic).
+You may clone a full app configuration for this example [here](https://github.com/visgl/react-map-gl/tree/7.1-release/examples/get-started/basic).
```tsx
import * as React from 'react';
@@ -28,7 +28,7 @@ function App() {
## Controlled Map
-You may clone a full app configuration for this example [here](https://github.com/visgl/react-map-gl/tree/7.0-release/examples/get-started/controlled).
+You may clone a full app configuration for this example [here](https://github.com/visgl/react-map-gl/tree/7.1-release/examples/get-started/controlled).
```tsx
import * as React from 'react';
@@ -51,8 +51,8 @@ function App() {
A real-world application likely uses more complicated state flows:
-- Using map with a state store (Redux) [example](https://github.com/visgl/react-map-gl/tree/7.0-release/examples/get-started/redux)
-- Using map with SSR (Next.js) [example](https://github.com/visgl/react-map-gl/tree/7.0-release/examples/get-started/nextjs)
+- Using map with a state store (Redux) [example](https://github.com/visgl/react-map-gl/tree/7.1-release/examples/get-started/redux)
+- Using map with SSR (Next.js) [example](https://github.com/visgl/react-map-gl/tree/7.1-release/examples/get-started/nextjs)
## Custom Camera Constraints
diff --git a/docs/whats-new.md b/docs/whats-new.md
index ab79260f..592c5126 100644
--- a/docs/whats-new.md
+++ b/docs/whats-new.md
@@ -2,7 +2,7 @@
## react-map-gl v7.1
-Release date: June 2023
+Release date: June 30 2023
- To better accommodate the API divergence between Mapbox and Maplibre, this version adds a new endpoint `react-map-gl/maplibre`. The new endpoint exports identical components as `react-map-gl`, but typed for `maplibre-gl` instead. After switching to this new endpoint, `maplibre-gl` users no longer need to install `mapbox-gl` or a placeholder package as dependency. See [upgrade guide](./upgrade-guide.md) for an example.
- `Marker`, `Popup` and `GeolocateControl` components now expose the native instance via React ref.
diff --git a/examples/clusters/package.json b/examples/clusters/package.json
index cb1d4534..6e5a6c29 100644
--- a/examples/clusters/package.json
+++ b/examples/clusters/package.json
@@ -7,7 +7,7 @@
"dependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0",
- "react-map-gl": "^7.1.0-beta",
+ "react-map-gl": "^7.1.0",
"mapbox-gl": "^2.0.0"
},
"devDependencies": {
diff --git a/examples/clusters/src/control-panel.tsx b/examples/clusters/src/control-panel.tsx
index 8fb67a7a..328027ab 100644
--- a/examples/clusters/src/control-panel.tsx
+++ b/examples/clusters/src/control-panel.tsx
@@ -7,7 +7,7 @@ function ControlPanel() {
Geocoder