chore: fix mapbox references in stories, webpack config

This commit is contained in:
Kevin Schaul
2023-08-28 16:13:36 -05:00
parent 7ba1b56983
commit e53e3b123d
4 changed files with 7 additions and 11 deletions
+1 -3
View File
@@ -25,9 +25,7 @@ module.exports = {
extensions: ['.js', '.jsx'] extensions: ['.js', '.jsx']
}, },
module: { module: {
noParse: [ noParse: [],
/mapbox-gl\/dist\/mapbox-gl.js/
],
rules: rules rules: rules
}, },
node: { node: {
+1 -3
View File
@@ -23,9 +23,7 @@ module.exports = {
extensions: ['.js', '.jsx'] extensions: ['.js', '.jsx']
}, },
module: { module: {
noParse: [ noParse: [],
/mapbox-gl\/dist\/mapbox-gl.js/
],
rules: rules rules: rules
}, },
node: { node: {
+4 -4
View File
@@ -1,13 +1,13 @@
import React from 'react'; import React from 'react';
import MapMapboxGl from '../src/components/MapMapboxGl'; import MapMaplibreGl from '../src/components/MapMaplibreGl';
import {action} from '@storybook/addon-actions'; import {action} from '@storybook/addon-actions';
import {Wrapper} from './ui'; import {Wrapper} from './ui';
import {withA11y} from '@storybook/addon-a11y'; import {withA11y} from '@storybook/addon-a11y';
export default { export default {
title: 'MapMapboxGl', title: 'MapMaplibreGl',
component: MapMapboxGl, component: MapMaplibreGl,
decorators: [withA11y], decorators: [withA11y],
}; };
@@ -98,7 +98,7 @@ const mapStyle = {
export const Basic = () => { export const Basic = () => {
return <div style={{height: "100vh", width: "100vw"}}> return <div style={{height: "100vh", width: "100vw"}}>
<MapMapboxGl <MapMaplibreGl
mapStyle={mapStyle} mapStyle={mapStyle}
inspectModeEnabled={false} inspectModeEnabled={false}
replaceAccessTokens={(s) => s} replaceAccessTokens={(s) => s}
+1 -1
View File
@@ -17,7 +17,7 @@ export const Basic = () => (
<ModalDebug <ModalDebug
isOpen={true} isOpen={true}
renderer="mlgljs" renderer="mlgljs"
mapboxGlDebugOptions={{}} maplibreGlDebugOptions={{}}
mapView={{zoom: 1, center: {lat: 0, lng: 0}}} mapView={{zoom: 1, center: {lat: 0, lng: 0}}}
/> />
</div> </div>