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.

View Code ↗ diff --git a/examples/mapbox/controls/src/control-panel.tsx b/examples/mapbox/controls/src/control-panel.tsx index d6b337883..872594663 100644 --- a/examples/mapbox/controls/src/control-panel.tsx +++ b/examples/mapbox/controls/src/control-panel.tsx @@ -16,7 +16,7 @@ function ControlPanel() {

View Code ↗ diff --git a/examples/mapbox/custom-cursor/src/control-panel.tsx b/examples/mapbox/custom-cursor/src/control-panel.tsx index 8f5a7d7bd..6e09fb9dc 100644 --- a/examples/mapbox/custom-cursor/src/control-panel.tsx +++ b/examples/mapbox/custom-cursor/src/control-panel.tsx @@ -50,7 +50,7 @@ function StyleControls(props) {

Customize the cursor based on interactivity.

View Code ↗ diff --git a/examples/mapbox/custom-overlay/src/control-panel.tsx b/examples/mapbox/custom-overlay/src/control-panel.tsx index b3a8cf468..0d9cd64ca 100644 --- a/examples/mapbox/custom-overlay/src/control-panel.tsx +++ b/examples/mapbox/custom-overlay/src/control-panel.tsx @@ -32,7 +32,7 @@ function ControlPanel() {

View Code ↗ diff --git a/examples/mapbox/draggable-markers/src/control-panel.tsx b/examples/mapbox/draggable-markers/src/control-panel.tsx index 9ae3231cf..0a230c25c 100644 --- a/examples/mapbox/draggable-markers/src/control-panel.tsx +++ b/examples/mapbox/draggable-markers/src/control-panel.tsx @@ -26,7 +26,7 @@ function ControlPanel(props: {events: Record}) {
View Code ↗ diff --git a/examples/mapbox/draw-polygon/src/control-panel.tsx b/examples/mapbox/draw-polygon/src/control-panel.tsx index eccde2595..c675dfd15 100644 --- a/examples/mapbox/draw-polygon/src/control-panel.tsx +++ b/examples/mapbox/draw-polygon/src/control-panel.tsx @@ -18,7 +18,7 @@ function ControlPanel(props) { )}
View Code ↗ diff --git a/examples/mapbox/filter/src/control-panel.tsx b/examples/mapbox/filter/src/control-panel.tsx index fd0643e19..5238941e2 100644 --- a/examples/mapbox/filter/src/control-panel.tsx +++ b/examples/mapbox/filter/src/control-panel.tsx @@ -7,7 +7,7 @@ function ControlPanel() {

Hover over counties to highlight counties that share the same name.

View Code ↗ diff --git a/examples/mapbox/geocoder/src/control-panel.tsx b/examples/mapbox/geocoder/src/control-panel.tsx index 92e43dcd9..ac7d6d8ee 100644 --- a/examples/mapbox/geocoder/src/control-panel.tsx +++ b/examples/mapbox/geocoder/src/control-panel.tsx @@ -6,7 +6,7 @@ function ControlPanel() {

Geocoder

View Code ↗ diff --git a/examples/mapbox/geojson-animation/src/control-panel.tsx b/examples/mapbox/geojson-animation/src/control-panel.tsx index 5a174a6b2..1c49cb590 100644 --- a/examples/mapbox/geojson-animation/src/control-panel.tsx +++ b/examples/mapbox/geojson-animation/src/control-panel.tsx @@ -7,7 +7,7 @@ function ControlPanel() {

Render animation by updating GeoJSON data source.

View Code ↗ diff --git a/examples/mapbox/geojson/src/control-panel.tsx b/examples/mapbox/geojson/src/control-panel.tsx index e8d65f280..14adb949e 100644 --- a/examples/mapbox/geojson/src/control-panel.tsx +++ b/examples/mapbox/geojson/src/control-panel.tsx @@ -18,7 +18,7 @@ function ControlPanel(props) {

View Code ↗ diff --git a/examples/mapbox/heatmap/src/control-panel.tsx b/examples/mapbox/heatmap/src/control-panel.tsx index 8e38c1e75..96335b850 100644 --- a/examples/mapbox/heatmap/src/control-panel.tsx +++ b/examples/mapbox/heatmap/src/control-panel.tsx @@ -57,7 +57,7 @@ function ControlPanel(props) {

View Code ↗ diff --git a/examples/mapbox/interaction/src/control-panel.tsx b/examples/mapbox/interaction/src/control-panel.tsx index 9a31224ef..8a63ede4a 100644 --- a/examples/mapbox/interaction/src/control-panel.tsx +++ b/examples/mapbox/interaction/src/control-panel.tsx @@ -47,7 +47,7 @@ function ControlPanel(props) {

Turn interactive features off/on.

View Code ↗ diff --git a/examples/mapbox/layers/src/control-panel.tsx b/examples/mapbox/layers/src/control-panel.tsx index 626ccbe20..577a71673 100644 --- a/examples/mapbox/layers/src/control-panel.tsx +++ b/examples/mapbox/layers/src/control-panel.tsx @@ -82,7 +82,7 @@ function StyleControls(props) {

Dynamically show/hide map layers and change color with Immutable map style.

View Code ↗ diff --git a/examples/mapbox/side-by-side/src/control-panel.tsx b/examples/mapbox/side-by-side/src/control-panel.tsx index 6f68d7d62..b56400c75 100644 --- a/examples/mapbox/side-by-side/src/control-panel.tsx +++ b/examples/mapbox/side-by-side/src/control-panel.tsx @@ -26,7 +26,7 @@ function ControlPanel(props: {mode: Mode; onModeChange: (newMode: Mode) => void}
View Code ↗ diff --git a/examples/mapbox/terrain/src/control-panel.tsx b/examples/mapbox/terrain/src/control-panel.tsx index 563bce438..7b1ab437c 100644 --- a/examples/mapbox/terrain/src/control-panel.tsx +++ b/examples/mapbox/terrain/src/control-panel.tsx @@ -8,7 +8,7 @@ function ControlPanel() {
View Code ↗ diff --git a/examples/mapbox/viewport-animation/src/control-panel.tsx b/examples/mapbox/viewport-animation/src/control-panel.tsx index a0b9c9fe8..1f1ebfff0 100644 --- a/examples/mapbox/viewport-animation/src/control-panel.tsx +++ b/examples/mapbox/viewport-animation/src/control-panel.tsx @@ -9,7 +9,7 @@ function ControlPanel(props) {

Smooth animate of the viewport.

View Code ↗ diff --git a/examples/mapbox/zoom-to-bounds/src/control-panel.tsx b/examples/mapbox/zoom-to-bounds/src/control-panel.tsx index d38606607..7fe0f8ac0 100644 --- a/examples/mapbox/zoom-to-bounds/src/control-panel.tsx +++ b/examples/mapbox/zoom-to-bounds/src/control-panel.tsx @@ -7,7 +7,7 @@ function ControlPanel() {

Click on a San Fransisco Neighborhood to zoom in.

View Code ↗ diff --git a/examples/maplibre/clusters/src/control-panel.tsx b/examples/maplibre/clusters/src/control-panel.tsx index db22b89dd..9333acda9 100644 --- a/examples/maplibre/clusters/src/control-panel.tsx +++ b/examples/maplibre/clusters/src/control-panel.tsx @@ -7,7 +7,7 @@ function ControlPanel() {

Use Maplibre GL JS' built-in functions to visualize points as clusters.

View Code ↗ diff --git a/examples/maplibre/controls/src/control-panel.tsx b/examples/maplibre/controls/src/control-panel.tsx index 917e35446..641ca38ca 100644 --- a/examples/maplibre/controls/src/control-panel.tsx +++ b/examples/maplibre/controls/src/control-panel.tsx @@ -16,7 +16,7 @@ function ControlPanel() {

View Code ↗ diff --git a/examples/maplibre/custom-cursor/src/control-panel.tsx b/examples/maplibre/custom-cursor/src/control-panel.tsx index 856aeedc2..d0b01b88f 100644 --- a/examples/maplibre/custom-cursor/src/control-panel.tsx +++ b/examples/maplibre/custom-cursor/src/control-panel.tsx @@ -50,7 +50,7 @@ function StyleControls(props) {

Customize the cursor based on interactivity.

View Code ↗ diff --git a/examples/maplibre/custom-overlay/src/control-panel.tsx b/examples/maplibre/custom-overlay/src/control-panel.tsx index c7cfef5a2..e22bded67 100644 --- a/examples/maplibre/custom-overlay/src/control-panel.tsx +++ b/examples/maplibre/custom-overlay/src/control-panel.tsx @@ -32,7 +32,7 @@ function ControlPanel() {

View Code ↗ diff --git a/examples/maplibre/draw-polygon/src/control-panel.tsx b/examples/maplibre/draw-polygon/src/control-panel.tsx index d79050faf..62fa8945e 100644 --- a/examples/maplibre/draw-polygon/src/control-panel.tsx +++ b/examples/maplibre/draw-polygon/src/control-panel.tsx @@ -18,7 +18,7 @@ function ControlPanel(props) { )}
View Code ↗ diff --git a/examples/maplibre/filter/src/control-panel.tsx b/examples/maplibre/filter/src/control-panel.tsx index 6ebaeaba3..1632d1d85 100644 --- a/examples/maplibre/filter/src/control-panel.tsx +++ b/examples/maplibre/filter/src/control-panel.tsx @@ -7,7 +7,7 @@ function ControlPanel() {

Hover over counties to highlight counties that share the same name.

View Code ↗ diff --git a/examples/maplibre/geocoder/src/control-panel.tsx b/examples/maplibre/geocoder/src/control-panel.tsx index 256634c49..988219d57 100644 --- a/examples/maplibre/geocoder/src/control-panel.tsx +++ b/examples/maplibre/geocoder/src/control-panel.tsx @@ -6,7 +6,7 @@ function ControlPanel() {

Geocoder

View Code ↗ diff --git a/examples/maplibre/geojson-animation/src/control-panel.tsx b/examples/maplibre/geojson-animation/src/control-panel.tsx index 216140a11..099b00531 100644 --- a/examples/maplibre/geojson-animation/src/control-panel.tsx +++ b/examples/maplibre/geojson-animation/src/control-panel.tsx @@ -7,7 +7,7 @@ function ControlPanel() {

Render animation by updating GeoJSON data source.

View Code ↗ diff --git a/examples/maplibre/geojson/src/control-panel.tsx b/examples/maplibre/geojson/src/control-panel.tsx index a55ad6e2a..deb5cbd77 100644 --- a/examples/maplibre/geojson/src/control-panel.tsx +++ b/examples/maplibre/geojson/src/control-panel.tsx @@ -15,7 +15,7 @@ function ControlPanel(props) {

View Code ↗ diff --git a/examples/maplibre/globe/src/control-panel.tsx b/examples/maplibre/globe/src/control-panel.tsx index b825b0cca..ff0970f81 100644 --- a/examples/maplibre/globe/src/control-panel.tsx +++ b/examples/maplibre/globe/src/control-panel.tsx @@ -8,7 +8,7 @@ function ControlPanel() {
View Code ↗ diff --git a/examples/maplibre/heatmap/src/control-panel.tsx b/examples/maplibre/heatmap/src/control-panel.tsx index 1221b15be..55479da20 100644 --- a/examples/maplibre/heatmap/src/control-panel.tsx +++ b/examples/maplibre/heatmap/src/control-panel.tsx @@ -57,7 +57,7 @@ function ControlPanel(props) {

View Code ↗ diff --git a/examples/maplibre/interaction/src/control-panel.tsx b/examples/maplibre/interaction/src/control-panel.tsx index 307f6eedf..46f5ed601 100644 --- a/examples/maplibre/interaction/src/control-panel.tsx +++ b/examples/maplibre/interaction/src/control-panel.tsx @@ -47,7 +47,7 @@ function ControlPanel(props) {

Turn interactive features off/on.

View Code ↗ diff --git a/examples/maplibre/layers/src/control-panel.tsx b/examples/maplibre/layers/src/control-panel.tsx index 4ab4ff04d..24b72311c 100644 --- a/examples/maplibre/layers/src/control-panel.tsx +++ b/examples/maplibre/layers/src/control-panel.tsx @@ -82,7 +82,7 @@ function StyleControls(props) {

Dynamically show/hide map layers and change color with Immutable map style.

View Code ↗ diff --git a/examples/maplibre/side-by-side/src/control-panel.tsx b/examples/maplibre/side-by-side/src/control-panel.tsx index 32d180529..6c6223508 100644 --- a/examples/maplibre/side-by-side/src/control-panel.tsx +++ b/examples/maplibre/side-by-side/src/control-panel.tsx @@ -26,7 +26,7 @@ function ControlPanel(props: {mode: Mode; onModeChange: (newMode: Mode) => void}
View Code ↗ diff --git a/examples/maplibre/terrain/src/control-panel.tsx b/examples/maplibre/terrain/src/control-panel.tsx index 4cfdaccee..a8a07170f 100644 --- a/examples/maplibre/terrain/src/control-panel.tsx +++ b/examples/maplibre/terrain/src/control-panel.tsx @@ -8,7 +8,7 @@ function ControlPanel() {
View Code ↗ diff --git a/examples/maplibre/viewport-animation/src/control-panel.tsx b/examples/maplibre/viewport-animation/src/control-panel.tsx index 27cfc0898..c87a77aa6 100644 --- a/examples/maplibre/viewport-animation/src/control-panel.tsx +++ b/examples/maplibre/viewport-animation/src/control-panel.tsx @@ -9,7 +9,7 @@ function ControlPanel(props) {

Smooth animate of the viewport.

View Code ↗ diff --git a/examples/maplibre/zoom-to-bounds/src/control-panel.tsx b/examples/maplibre/zoom-to-bounds/src/control-panel.tsx index ba16683fd..99c87fedd 100644 --- a/examples/maplibre/zoom-to-bounds/src/control-panel.tsx +++ b/examples/maplibre/zoom-to-bounds/src/control-panel.tsx @@ -7,7 +7,7 @@ function ControlPanel() {

Click on a San Fransisco Neighborhood to zoom in.

View Code ↗ diff --git a/scripts/update-release-branch.sh b/scripts/update-release-branch.sh index 7c61cae13..f5ab294a1 100755 --- a/scripts/update-release-branch.sh +++ b/scripts/update-release-branch.sh @@ -1,6 +1,6 @@ -#!/bin/sh +#!/bin/bash # Example: -# update-release-branch.sh 6.3 +# update-release-branch.sh 8.0 set -e @@ -10,14 +10,13 @@ VERSION=`echo "$1.0"` echo "Updating branch to ${BRANCH}..." # Replace source links in docs and examples -find docs -iname "*.md" -type f -exec sed -i '' -E "s/react-map-gl\/(tree|blob)\/(master|[0-9\.]+-release)/react-map-gl\/tree\/${BRANCH}/g" {} \; -find examples -maxdepth 0 -iname "*.md" -type f -exec sed -i '' -E "s/react-map-gl\/(tree|blob)\/(master|[0-9\.]+-release)/react-map-gl\/tree\/${BRANCH}/g" {} \; -find examples/*/src -iname "*.js" -type f -exec sed -i '' -E "s/react-map-gl\/(tree|blob)\/(master|[0-9\.]+-release)/react-map-gl\/tree\/${BRANCH}/g" {} \; +find docs -mindepth 2 -iname "*.md" -exec perl -i -pe "s/react-map-gl\/(tree|blob)\/(master|[0-9\.]+-release)/react-map-gl\/tree\/${BRANCH}/g" {} \; +find examples \( -iname "*.js" -iname "*.jsx" -iname "*.ts" -o -iname "*.tsx" \) -type f -exec perl -i -pe "s/react-map-gl\/(tree|blob)\/(master|[0-9\.]+-release)/react-map-gl\/tree\/${BRANCH}/g" {} \; # Bump dependencies in examples update_dep() { - FILE=$1 - VERSION=$2 + local FILE=$1 + local VERSION=$2 cat $FILE | jq ".dependencies |= . + \ with_entries(select(.key | match(\"react-map-gl\")) | .value |= \"^${VERSION}\")" > temp mv temp $FILE @@ -25,4 +24,4 @@ update_dep() { # https://stackoverflow.com/questions/4321456/find-exec-a-shell-function-in-linux export -f update_dep -find examples/*/package.json -exec bash -c 'update_dep "$0" $1' {} $VERSION \; +find examples -type f -name "package.json" -exec bash -c 'update_dep "$0" $1' {} $VERSION \;