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

View File

@@ -25,9 +25,7 @@ module.exports = {
extensions: ['.js', '.jsx']
},
module: {
noParse: [
/mapbox-gl\/dist\/mapbox-gl.js/
],
noParse: [],
rules: rules
},
node: {

View File

@@ -23,9 +23,7 @@ module.exports = {
extensions: ['.js', '.jsx']
},
module: {
noParse: [
/mapbox-gl\/dist\/mapbox-gl.js/
],
noParse: [],
rules: rules
},
node: {

View File

@@ -1,13 +1,13 @@
import React from 'react';
import MapMapboxGl from '../src/components/MapMapboxGl';
import MapMaplibreGl from '../src/components/MapMaplibreGl';
import {action} from '@storybook/addon-actions';
import {Wrapper} from './ui';
import {withA11y} from '@storybook/addon-a11y';
export default {
title: 'MapMapboxGl',
component: MapMapboxGl,
title: 'MapMaplibreGl',
component: MapMaplibreGl,
decorators: [withA11y],
};
@@ -98,7 +98,7 @@ const mapStyle = {
export const Basic = () => {
return <div style={{height: "100vh", width: "100vw"}}>
<MapMapboxGl
<MapMaplibreGl
mapStyle={mapStyle}
inspectModeEnabled={false}
replaceAccessTokens={(s) => s}

View File

@@ -17,7 +17,7 @@ export const Basic = () => (
<ModalDebug
isOpen={true}
renderer="mlgljs"
mapboxGlDebugOptions={{}}
maplibreGlDebugOptions={{}}
mapView={{zoom: 1, center: {lat: 0, lng: 0}}}
/>
</div>