diff --git a/docs/api-reference/mapbox/attribution-control.md b/docs/api-reference/mapbox/attribution-control.md index 532aea996..5f0068801 100644 --- a/docs/api-reference/mapbox/attribution-control.md +++ b/docs/api-reference/mapbox/attribution-control.md @@ -52,4 +52,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/8.0-release/modules/react-mapbox/src/components/attribution-control.ts) diff --git a/docs/api-reference/mapbox/fullscreen-control.md b/docs/api-reference/mapbox/fullscreen-control.md index e2fcf6cc2..c61e4b734 100644 --- a/docs/api-reference/mapbox/fullscreen-control.md +++ b/docs/api-reference/mapbox/fullscreen-control.md @@ -49,4 +49,4 @@ Placement of the control relative to the map. ## Source -[fullscreen-control.ts](https://github.com/visgl/react-map-gl/tree/7.1-release/src/components/fullscreen-control.tsx) +[fullscreen-control.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-mapbox/src/components/fullscreen-control.ts) diff --git a/docs/api-reference/mapbox/geolocate-control.md b/docs/api-reference/mapbox/geolocate-control.md index 63622bc18..52f41ec15 100644 --- a/docs/api-reference/mapbox/geolocate-control.md +++ b/docs/api-reference/mapbox/geolocate-control.md @@ -102,4 +102,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/8.0-release/modules/react-mapbox/src/components/geolocate-control.ts) diff --git a/docs/api-reference/mapbox/layer.md b/docs/api-reference/mapbox/layer.md index 525dcff55..652438a71 100644 --- a/docs/api-reference/mapbox/layer.md +++ b/docs/api-reference/mapbox/layer.md @@ -68,4 +68,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/8.0-release/modules/react-mapbox/src/components/layer.ts) diff --git a/docs/api-reference/mapbox/map-provider.md b/docs/api-reference/mapbox/map-provider.md index 92a068986..fbaa8d172 100644 --- a/docs/api-reference/mapbox/map-provider.md +++ b/docs/api-reference/mapbox/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/8.0-release/modules/react-mapbox/src/components/use-map.tsx) diff --git a/docs/api-reference/mapbox/map.md b/docs/api-reference/mapbox/map.md index 5c6601aed..163a38ce4 100644 --- a/docs/api-reference/mapbox/map.md +++ b/docs/api-reference/mapbox/map.md @@ -568,4 +568,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/8.0-release/modules/react-mapbox/src/components/map.tsx) diff --git a/docs/api-reference/mapbox/marker.md b/docs/api-reference/mapbox/marker.md index dd05aba20..e95e314ee 100644 --- a/docs/api-reference/mapbox/marker.md +++ b/docs/api-reference/mapbox/marker.md @@ -148,4 +148,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/8.0-release/modules/react-mapbox/src/components/marker.ts) diff --git a/docs/api-reference/mapbox/navigation-control.md b/docs/api-reference/mapbox/navigation-control.md index 639243a3b..ef5f0a392 100644 --- a/docs/api-reference/mapbox/navigation-control.md +++ b/docs/api-reference/mapbox/navigation-control.md @@ -52,4 +52,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/8.0-release/modules/react-mapbox/src/components/navigation-control.ts) diff --git a/docs/api-reference/mapbox/popup.md b/docs/api-reference/mapbox/popup.md index 035ab4957..48b3ccc29 100644 --- a/docs/api-reference/mapbox/popup.md +++ b/docs/api-reference/mapbox/popup.md @@ -118,4 +118,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/8.0-release/modules/react-mapbox/src/components/popup.ts) diff --git a/docs/api-reference/mapbox/scale-control.md b/docs/api-reference/mapbox/scale-control.md index 6c470b76f..511d7c425 100644 --- a/docs/api-reference/mapbox/scale-control.md +++ b/docs/api-reference/mapbox/scale-control.md @@ -57,4 +57,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/8.0-release/modules/react-mapbox/src/components/scale-control.ts) diff --git a/docs/api-reference/mapbox/source.md b/docs/api-reference/mapbox/source.md index 6d376e2cc..436d335d5 100644 --- a/docs/api-reference/mapbox/source.md +++ b/docs/api-reference/mapbox/source.md @@ -62,4 +62,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/8.0-release/modules/react-mapbox/src/components/source.ts) diff --git a/docs/api-reference/mapbox/use-control.md b/docs/api-reference/mapbox/use-control.md index 450b7dd0b..e05d8dd36 100644 --- a/docs/api-reference/mapbox/use-control.md +++ b/docs/api-reference/mapbox/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/8.0-release/modules/react-mapbox/src/components/use-control.ts) diff --git a/docs/api-reference/mapbox/use-map.md b/docs/api-reference/mapbox/use-map.md index 5809e49b0..93589bd18 100644 --- a/docs/api-reference/mapbox/use-map.md +++ b/docs/api-reference/mapbox/use-map.md @@ -57,7 +57,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/8.0-release/examples/get-started/hook). ## Signature @@ -69,4 +69,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/8.0-release/modules/react-mapbox/src/components/use-map.tsx) diff --git a/docs/api-reference/maplibre/attribution-control.md b/docs/api-reference/maplibre/attribution-control.md index c97625d86..902ad0bd0 100644 --- a/docs/api-reference/maplibre/attribution-control.md +++ b/docs/api-reference/maplibre/attribution-control.md @@ -53,4 +53,4 @@ Placement of the control relative to the map. ## Source -[attribution-control.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/attribution-control.ts) +[attribution-control.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/attribution-control.ts) diff --git a/docs/api-reference/maplibre/fullscreen-control.md b/docs/api-reference/maplibre/fullscreen-control.md index fe9788585..02eb77ac8 100644 --- a/docs/api-reference/maplibre/fullscreen-control.md +++ b/docs/api-reference/maplibre/fullscreen-control.md @@ -48,4 +48,4 @@ Placement of the control relative to the map. ## Source -[fullscreen-control.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/fullscreen-control.ts) +[fullscreen-control.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/fullscreen-control.ts) diff --git a/docs/api-reference/maplibre/geolocate-control.md b/docs/api-reference/maplibre/geolocate-control.md index ca7032b6f..d09c84789 100644 --- a/docs/api-reference/maplibre/geolocate-control.md +++ b/docs/api-reference/maplibre/geolocate-control.md @@ -103,4 +103,4 @@ function App() { ## Source -[geolocate-control.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/geolocate-control.ts) +[geolocate-control.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/geolocate-control.ts) diff --git a/docs/api-reference/maplibre/layer.md b/docs/api-reference/maplibre/layer.md index c44bdf392..47ae38b23 100644 --- a/docs/api-reference/maplibre/layer.md +++ b/docs/api-reference/maplibre/layer.md @@ -68,4 +68,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/master/modules/maplibre/src/components/layer.ts) +[layer.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/layer.ts) diff --git a/docs/api-reference/maplibre/logo-control.md b/docs/api-reference/maplibre/logo-control.md index 914058016..5640ac473 100644 --- a/docs/api-reference/maplibre/logo-control.md +++ b/docs/api-reference/maplibre/logo-control.md @@ -50,4 +50,4 @@ Placement of the control relative to the map. ## Source -[logo-control.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/logo-control.ts) +[logo-control.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/logo-control.ts) diff --git a/docs/api-reference/maplibre/map-provider.md b/docs/api-reference/maplibre/map-provider.md index a7e8f4665..796a9e5de 100644 --- a/docs/api-reference/maplibre/map-provider.md +++ b/docs/api-reference/maplibre/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/master/modules/maplibre/src/components/use-map.tsx) +[use-map.tsx](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/use-map.tsx) diff --git a/docs/api-reference/maplibre/map.md b/docs/api-reference/maplibre/map.md index 9508bf70b..0169a90e7 100644 --- a/docs/api-reference/maplibre/map.md +++ b/docs/api-reference/maplibre/map.md @@ -549,4 +549,4 @@ Returns the native [Map](https://maplibre.org/maplibre-gl-js/docs/API/classes/Ma ## Source -[map.tsx](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/map.tsx) +[map.tsx](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/map.tsx) diff --git a/docs/api-reference/maplibre/marker.md b/docs/api-reference/maplibre/marker.md index 86670995f..375be884a 100644 --- a/docs/api-reference/maplibre/marker.md +++ b/docs/api-reference/maplibre/marker.md @@ -146,4 +146,4 @@ function App() { ## Source -[marker.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/marker.ts) +[marker.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/marker.ts) diff --git a/docs/api-reference/maplibre/navigation-control.md b/docs/api-reference/maplibre/navigation-control.md index 2e38b128e..c84d8c042 100644 --- a/docs/api-reference/maplibre/navigation-control.md +++ b/docs/api-reference/maplibre/navigation-control.md @@ -52,4 +52,4 @@ Placement of the control relative to the map. ## Source -[navigation-control.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/navigation-control.ts) +[navigation-control.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/navigation-control.ts) diff --git a/docs/api-reference/maplibre/popup.md b/docs/api-reference/maplibre/popup.md index 190e04691..d051ea768 100644 --- a/docs/api-reference/maplibre/popup.md +++ b/docs/api-reference/maplibre/popup.md @@ -119,4 +119,4 @@ function App() { ## Source -[popup.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/popup.ts) +[popup.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/popup.ts) diff --git a/docs/api-reference/maplibre/scale-control.md b/docs/api-reference/maplibre/scale-control.md index d912ee603..5c991993a 100644 --- a/docs/api-reference/maplibre/scale-control.md +++ b/docs/api-reference/maplibre/scale-control.md @@ -56,4 +56,4 @@ Placement of the control relative to the map. ## Source -[scale-control.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/scale-control.ts) +[scale-control.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/scale-control.ts) diff --git a/docs/api-reference/maplibre/source.md b/docs/api-reference/maplibre/source.md index 88e578496..297c1da63 100644 --- a/docs/api-reference/maplibre/source.md +++ b/docs/api-reference/maplibre/source.md @@ -61,4 +61,4 @@ Required. Type of the source. ## Source -[source.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/source.ts) +[source.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/source.ts) diff --git a/docs/api-reference/maplibre/terrain-control.md b/docs/api-reference/maplibre/terrain-control.md index 65a64662b..4112cef9c 100644 --- a/docs/api-reference/maplibre/terrain-control.md +++ b/docs/api-reference/maplibre/terrain-control.md @@ -82,4 +82,4 @@ Placement of the control relative to the map. ## Source -[terrain-control.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/terrain-control.ts) +[terrain-control.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/terrain-control.ts) diff --git a/docs/api-reference/maplibre/use-control.md b/docs/api-reference/maplibre/use-control.md index 627150215..ee3d8b7f4 100644 --- a/docs/api-reference/maplibre/use-control.md +++ b/docs/api-reference/maplibre/use-control.md @@ -84,4 +84,4 @@ Returns: ## Source -[use-control.ts](https://github.com/visgl/react-map-gl/tree/master/modules/maplibre/src/components/use-control.ts) +[use-control.ts](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/use-control.ts) diff --git a/docs/api-reference/maplibre/use-map.md b/docs/api-reference/maplibre/use-map.md index 631132348..ea0caf6cb 100644 --- a/docs/api-reference/maplibre/use-map.md +++ b/docs/api-reference/maplibre/use-map.md @@ -55,7 +55,7 @@ function NavigateButton() { ``` -See a full example [here](https://github.com/visgl/react-map-gl/tree/master/examples/get-started/hook). +See a full example [here](https://github.com/visgl/react-map-gl/tree/8.0-release/examples/get-started/hook). ## Signature @@ -67,4 +67,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/master/modules/maplibre/src/components/use-map.tsx) +[use-map.tsx](https://github.com/visgl/react-map-gl/tree/8.0-release/modules/react-maplibre/src/components/use-map.tsx) diff --git a/docs/get-started/adding-custom-data.md b/docs/get-started/adding-custom-data.md index c419685ba..2bf12934a 100644 --- a/docs/get-started/adding-custom-data.md +++ b/docs/get-started/adding-custom-data.md @@ -51,12 +51,12 @@ function App() { For details about data sources and layer configuration, check out the [Mapbox style specification](https://www.mapbox.com/mapbox-gl-js/style-spec). -For dynamically updating data sources and layers, check out the [GeoJSON](http://visgl.github.io/react-map-gl/examples/geojson) and [GeoJSON animation](http://visgl.github.io/react-map-gl/examples/geojson-animation) examples. +For dynamically updating data sources and layers, check out the [GeoJSON](https://visgl.github.io/react-map-gl/examples/maplibre/geojson) and [GeoJSON animation](http://visgl.github.io/react-map-gl/examples/maplibre/geojson-animation) examples. ## 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/8.0-release/examples/maplibre/custom-overlay). ## Other vis.gl Libraries diff --git a/docs/get-started/state-management.md b/docs/get-started/state-management.md index 029782382..6d4c142a4 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/maplibre/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/8.0-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/8.0-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/8.0-release/examples/get-started/redux) +- Using map with SSR (Next.js) [example](https://github.com/visgl/react-map-gl/tree/8.0-release/examples/get-started/nextjs) ## Custom Camera Constraints diff --git a/examples/mapbox/clusters/src/control-panel.tsx b/examples/mapbox/clusters/src/control-panel.tsx index 8fb67a7a8..f0b9b55ac 100644 --- a/examples/mapbox/clusters/src/control-panel.tsx +++ b/examples/mapbox/clusters/src/control-panel.tsx @@ -7,7 +7,7 @@ function ControlPanel() {
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.
Click on a San Fransisco Neighborhood to zoom in.
Use Maplibre 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.