mirror of
https://github.com/maputnik/editor.git
synced 2026-02-05 12:10:03 +00:00
chore: fix mapbox references in stories, webpack config
This commit is contained in:
@@ -25,9 +25,7 @@ module.exports = {
|
||||
extensions: ['.js', '.jsx']
|
||||
},
|
||||
module: {
|
||||
noParse: [
|
||||
/mapbox-gl\/dist\/mapbox-gl.js/
|
||||
],
|
||||
noParse: [],
|
||||
rules: rules
|
||||
},
|
||||
node: {
|
||||
|
||||
@@ -23,9 +23,7 @@ module.exports = {
|
||||
extensions: ['.js', '.jsx']
|
||||
},
|
||||
module: {
|
||||
noParse: [
|
||||
/mapbox-gl\/dist\/mapbox-gl.js/
|
||||
],
|
||||
noParse: [],
|
||||
rules: rules
|
||||
},
|
||||
node: {
|
||||
|
||||
@@ -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}
|
||||
|
||||
@@ -17,7 +17,7 @@ export const Basic = () => (
|
||||
<ModalDebug
|
||||
isOpen={true}
|
||||
renderer="mlgljs"
|
||||
mapboxGlDebugOptions={{}}
|
||||
maplibreGlDebugOptions={{}}
|
||||
mapView={{zoom: 1, center: {lat: 0, lng: 0}}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user