From 859d0f9a8f4306d8a0dad53f638a78916684e824 Mon Sep 17 00:00:00 2001 From: andrewgryan Date: Wed, 30 Oct 2024 17:47:56 +0000 Subject: [PATCH] document TileLayer WMS with Storybook --- src/stories/TileLayerWMS.stories.js | 32 +++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/stories/TileLayerWMS.stories.js diff --git a/src/stories/TileLayerWMS.stories.js b/src/stories/TileLayerWMS.stories.js new file mode 100644 index 0000000..7cfe865 --- /dev/null +++ b/src/stories/TileLayerWMS.stories.js @@ -0,0 +1,32 @@ +import "../index.js" + +export default { + title: "Example/TileLayerWMS", + tags: ['autodocs'], + render: ({ urlTemplate, layers, transparent }) => ``, + argTypes: { + layers: { type: "string", control: "select", options: [ + "TOPO-OSM-WMS", + "SRTM30-Colored-Hillshade", + "TOPO-WMS", + "OSM-Overlay-WMS", + "TOPO-WMS,OSM-Overlay-WMS", + "TOPO-WMS,SRTM30-Colored-Hillshade", + ]} + }, + args: { + urlTemplate: "http://ows.mundialis.de/services/service?", + layers: "SRTM30-Colored-Hillshade", + transparent: true + }, + decorators: [(story) => ` + + ${story()} + + `], +} + + +export const Default = { + args: {} +}