Skip to content

Commit fc1d225

Browse files
committed
[v8] Separate examples for mapbox and maplibre (#2469)
1 parent 4f856f0 commit fc1d225

File tree

286 files changed

+4196
-241
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

286 files changed

+4196
-241
lines changed

examples/filter/package.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/geojson-animation/package.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

examples/get-started/basic/app.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* global document */
22
import * as React from 'react';
33
import {createRoot} from 'react-dom/client';
4-
import Map, {Marker} from 'react-map-gl';
4+
import Map, {Marker} from 'react-map-gl/mapbox';
55

66
import 'mapbox-gl/dist/mapbox-gl.css';
77

examples/get-started/basic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"dependencies": {
77
"react": "^18.0.0",
88
"react-dom": "^18.0.0",
9-
"react-map-gl": "^7.1.0",
10-
"mapbox-gl": "^2.0.0"
9+
"react-map-gl": "^8.0.0",
10+
"mapbox-gl": "^3.5.0"
1111
},
1212
"devDependencies": {
1313
"typescript": "^4.0.0",

examples/get-started/controlled/README.md

Lines changed: 1 addition & 1 deletion

examples/get-started/controlled/app.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* global document */
22
import * as React from 'react';
33
import {createRoot} from 'react-dom/client';
4-
import Map, {Marker} from 'react-map-gl';
4+
import Map, {Marker} from 'react-map-gl/mapbox';
55

66
import 'mapbox-gl/dist/mapbox-gl.css';
77

examples/get-started/controlled/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"dependencies": {
77
"react": "^18.0.0",
88
"react-dom": "^18.0.0",
9-
"react-map-gl": "^7.1.0",
10-
"mapbox-gl": "^2.0.0"
9+
"react-map-gl": "^8.0.0",
10+
"mapbox-gl": "^3.5.0"
1111
},
1212
"devDependencies": {
1313
"typescript": "^4.0.0",

examples/get-started/hook/README.md

Lines changed: 1 addition & 1 deletion

examples/get-started/hook/app.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* global document */
22
import * as React from 'react';
33
import {createRoot} from 'react-dom/client';
4-
import {MapProvider} from 'react-map-gl';
4+
import {MapProvider} from 'react-map-gl/mapbox';
55

66
import Map from './map';
77
import Controls from './controls';

examples/get-started/hook/controls.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as React from 'react';
22

33
import {useCallback, useState, useEffect} from 'react';
4-
import {useMap} from 'react-map-gl';
4+
import {useMap} from 'react-map-gl/mapbox';
55

66
export default function Controls() {
77
/**

0 commit comments

Comments
 (0)