Skip to content

Commit 0a710b4

Browse files
committed
[v8] Website (#2472)
1 parent 38d5fe3 commit 0a710b4

Some content is hidden

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

76 files changed

+12333
-5866
lines changed

examples/mapbox/custom-cursor/src/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {useState, useCallback} from 'react';
44
import {createRoot} from 'react-dom/client';
55
import Map, {MapStyle} from 'react-map-gl/mapbox';
66
import ControlPanel from './control-panel';
7-
import MAP_STYLE from '../../../map-style-basic-v8.json';
7+
import MAP_STYLE from '../../map-style-basic-v8.json';
88

99
const MAPBOX_TOKEN = ''; // Set your mapbox token here
1010

examples/mapbox/layers/src/control-panel.tsx

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
import {useState, useEffect} from 'react';
33
import {fromJS} from 'immutable';
4-
import MAP_STYLE from '../../../map-style-basic-v8.json';
4+
import MAP_STYLE from '../../map-style-basic-v8.json';
55

66
const defaultMapStyle: any = fromJS(MAP_STYLE);
77
const defaultLayers = defaultMapStyle.get('layers');

examples/mapbox/zoom-to-bounds/src/map-style.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type {
44
LineLayerSpecification
55
} from 'react-map-gl/mapbox';
66

7-
import MAP_STYLE from '../../../map-style-basic-v8.json';
7+
import MAP_STYLE from '../../map-style-basic-v8.json';
88

99
const sfNeighborhoods: GeoJSONSourceSpecification = {
1010
type: 'geojson',

examples/maplibre/custom-cursor/src/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {useState, useCallback} from 'react';
44
import {createRoot} from 'react-dom/client';
55
import {Map, MapStyle} from 'react-map-gl/maplibre';
66
import ControlPanel from './control-panel';
7-
import MAP_STYLE from '../../../map-style-basic-v8.json';
7+
import MAP_STYLE from '../../map-style-basic-v8.json';
88

99
const initialViewState = {
1010
longitude: -122.48,

examples/maplibre/layers/src/control-panel.tsx

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
import {useState, useEffect} from 'react';
33
import {fromJS} from 'immutable';
4-
import MAP_STYLE from '../../../map-style-basic-v8.json';
4+
import MAP_STYLE from '../../map-style-basic-v8.json';
55

66
const defaultMapStyle: any = fromJS(MAP_STYLE);
77
const defaultLayers = defaultMapStyle.get('layers');

0 commit comments

Comments
 (0)