mirror of
https://github.com/maputnik/editor.git
synced 2026-06-28 18:17:26 +00:00
chore: fix mapbox references in stories, webpack config
This commit is contained in:
@@ -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: {
|
||||||
|
|||||||
@@ -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: {
|
||||||
|
|||||||
@@ -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}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user