Skip to content

Commit

Permalink
Merge pull request #79 from UNopenGIS/split-map-style-options
Browse files Browse the repository at this point in the history
feat: Add mapStyleOptions for different map styles
  • Loading branch information
yuiseki committed Jun 29, 2024
2 parents 58ef072 + 33ed0f0 commit 4ac5f30
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/components/Combined/OpenCellId/index.stories.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
import { Meta, StoryObj } from "@storybook/react";
import { OpenCellIdWithStyle } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";

const meta = {
component: OpenCellIdWithStyle,
argTypes: {
mapStyle: {
options: [
"stylejson/tile.openstreetmap.jp/fiord-color-gl-style/style.json",
"stylejson/tile.openstreetmap.fr/hot/style.json",
"stylejson/tile.openstreetmap.org/style.json",
"https://tile.openstreetmap.jp/styles/osm-bright/style.json",
"stylejson/geoservices.un.org/clearmap/style.json",
"stylejson/server.arcgisonline.com/world_imagery/style.json",
"stylejson/cyberjapandata.gsi.go.jp/xyz/seamlessphoto/style.json",
],
options: mapStyleOptions,
control: { type: "select" },
},
},
Expand Down
9 changes: 9 additions & 0 deletions src/components/mapStyleOptions.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
export const mapStyleOptions = [
"stylejson/tile.openstreetmap.jp/fiord-color-gl-style/style.json",
"stylejson/tile.openstreetmap.fr/hot/style.json",
"stylejson/tile.openstreetmap.org/style.json",
"https://tile.openstreetmap.jp/styles/osm-bright/style.json",
"stylejson/geoservices.un.org/clearmap/style.json",
"stylejson/server.arcgisonline.com/world_imagery/style.json",
"stylejson/cyberjapandata.gsi.go.jp/xyz/seamlessphoto/style.json",
];

0 comments on commit 4ac5f30

Please sign in to comment.