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 11, 2024
1 parent 83cb8b0 commit d15d15f
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/components/Summary/Summary.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -496,3 +496,37 @@ 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 d15d15f

Please sign in to comment.