Skip to content

Commit

Permalink
Add a small story
Browse files Browse the repository at this point in the history
  • Loading branch information
etienneburdet committed Oct 10, 2023
1 parent d001fc1 commit 6727c43
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion packages/visualizations-react/stories/Poi/PoiMap.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const meta: ComponentMeta<typeof PoiMap> = {

export default meta;

const Template: ComponentStory<typeof PoiMap> = (args) => (
const Template: ComponentStory<typeof PoiMap> = args => (
<div
style={{
width: '50%',
Expand Down Expand Up @@ -170,3 +170,18 @@ const PoiMapLegendCenterArgs = {
options: { ...options, legend: { ...legend, align: 'center' as const } },
};
PoiMapLegendCenter.args = PoiMapLegendCenterArgs;

/**
* STORY: With legend on center align
*/
export const PoiMapMinMaxZooms: ComponentStory<typeof PoiMap> = Template.bind({});
const PoiMapMinMaxZoomsArgs = {
data: { value: { layers: [{ ...layer1, colorMatch: citiesColorMatch }, layer2], sources } },
options: {
...options,
legend: { ...legend, align: 'center' as const },
minZoom: 3,
maxZoom: 5,
},
};
PoiMapMinMaxZooms.args = PoiMapMinMaxZoomsArgs;

0 comments on commit 6727c43

Please sign in to comment.