Skip to content

Commit

Permalink
✅ [open-formulieren/open-forms#2173] Added map component to summary s…
Browse files Browse the repository at this point in the history
…torybook entry
  • Loading branch information
robinmolen committed Dec 10, 2024
1 parent 83cb8b0 commit daeca51
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/components/Summary/Summary.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -496,3 +496,36 @@ export const AddressNLSummaryEmpty = {
await expect(canvas.getByRole('definition')).toHaveTextContent('');
},
};

export const MapSummary = {
render,
args: {
summaryData: [
{
slug: 'maps',
name: 'Maps',
data: [
{
name: 'Map with default tile layer',
value: [52.1326332, 5.291266],
component: {
key: 'map',
type: 'map',
label: 'Map with default tile layer',
},
},
{
name: 'Map with custom tile layer',
value: [52.1326332, 5.291266],
component: {
key: 'map',
type: 'map',
label: 'Map with custom tile layer',
tileLayerUrl: 'https://service.pdok.nl/hwh/luchtfotorgb/wmts/v1_0/Actueel_orthoHR/EPSG:28992/{z}/{x}/{y}.png',
},
},
],
},
],
},
};

0 comments on commit daeca51

Please sign in to comment.