Skip to content

Commit

Permalink
[v8] Website (#2472)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pessimistress committed Jan 28, 2025
1 parent 38d5fe3 commit 0a710b4
Show file tree
Hide file tree
Showing 76 changed files with 12,333 additions and 5,866 deletions.
2 changes: 1 addition & 1 deletion examples/mapbox/custom-cursor/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {useState, useCallback} from 'react';
import {createRoot} from 'react-dom/client';
import Map, {MapStyle} from 'react-map-gl/mapbox';
import ControlPanel from './control-panel';
import MAP_STYLE from '../../../map-style-basic-v8.json';
import MAP_STYLE from '../../map-style-basic-v8.json';

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

Expand Down
2 changes: 1 addition & 1 deletion examples/mapbox/layers/src/control-panel.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import {useState, useEffect} from 'react';
import {fromJS} from 'immutable';
import MAP_STYLE from '../../../map-style-basic-v8.json';
import MAP_STYLE from '../../map-style-basic-v8.json';

const defaultMapStyle: any = fromJS(MAP_STYLE);
const defaultLayers = defaultMapStyle.get('layers');
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/mapbox/zoom-to-bounds/src/map-style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
LineLayerSpecification
} from 'react-map-gl/mapbox';

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

const sfNeighborhoods: GeoJSONSourceSpecification = {
type: 'geojson',
Expand Down
2 changes: 1 addition & 1 deletion examples/maplibre/custom-cursor/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {useState, useCallback} from 'react';
import {createRoot} from 'react-dom/client';
import {Map, MapStyle} from 'react-map-gl/maplibre';
import ControlPanel from './control-panel';
import MAP_STYLE from '../../../map-style-basic-v8.json';
import MAP_STYLE from '../../map-style-basic-v8.json';

const initialViewState = {
longitude: -122.48,
Expand Down
2 changes: 1 addition & 1 deletion examples/maplibre/layers/src/control-panel.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as React from 'react';
import {useState, useEffect} from 'react';
import {fromJS} from 'immutable';
import MAP_STYLE from '../../../map-style-basic-v8.json';
import MAP_STYLE from '../../map-style-basic-v8.json';

const defaultMapStyle: any = fromJS(MAP_STYLE);
const defaultLayers = defaultMapStyle.get('layers');
Expand Down
Loading

0 comments on commit 0a710b4

Please sign in to comment.