Skip to content

Commit

Permalink
Merge pull request #108 from UNopenGIS/rearrenge-directory-structure
Browse files Browse the repository at this point in the history
refactor: move Combined to examples dir
  • Loading branch information
yuiseki authored Aug 3, 2024
2 parents c868637 + 9f18236 commit b35d61c
Show file tree
Hide file tree
Showing 24 changed files with 47 additions and 44 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Meta, StoryObj } from "@storybook/react";
import { ArmedConflictWithBaseMap } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../../components/mapStyleOptions";



const meta = {
component: ArmedConflictWithBaseMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { ArmedConflictPMTilesSource as source } from "../../../components/Datasets/ArmedConflict/source";
import { ArmedConflictPMTilesSource as source } from "../../../../components/Datasets/ArmedConflict/source";

export const ArmedConflictWithBaseMap: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import { Meta, StoryObj } from "@storybook/react";
import { ArmedConflictWithRwanda10AndOverture } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { ArmedConflictWithRwanda10WithOverture } from ".";
import { mapStyleOptions } from "../../../../../components/mapStyleOptions";


const meta = {
component: ArmedConflictWithRwanda10AndOverture,
component: ArmedConflictWithRwanda10WithOverture,
argTypes: {
mapStyle: {
options: mapStyleOptions,
Expand All @@ -19,9 +20,9 @@ const meta = {
bottomPanelHeight: 300,
},
},
} satisfies Meta<typeof ArmedConflictWithRwanda10AndOverture>;
} satisfies Meta<typeof ArmedConflictWithRwanda10WithOverture>;

export default meta;
type Story = StoryObj<typeof ArmedConflictWithRwanda10AndOverture>;
type Story = StoryObj<typeof ArmedConflictWithRwanda10WithOverture>;

export const Preview: Story = {};
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { ArmedConflictPMTilesSource as dataSource } from "../../../components/Datasets/ArmedConflict/source";
import { Rwanda10PMTilesSource as terrainSource } from "../../../components/Datasets/Rwanda10/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../Datasets/OvertureMaps/source";
import { ArmedConflictPMTilesSource as dataSource } from "../../../../../components/Datasets/ArmedConflict/source";
import { Rwanda10PMTilesSource as terrainSource } from "../../../../../components/Datasets/Rwanda10/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../../../../components/Datasets/OvertureMaps/source";

export const ArmedConflictWithRwanda10AndOverture: React.FC<{ mapStyle: string }> = ({
export const ArmedConflictWithRwanda10WithOverture: React.FC<{ mapStyle: string }> = ({
mapStyle,
}) => {
useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { ArmedConflictWithOverture } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../../components/mapStyleOptions";

const meta = {
component: ArmedConflictWithOverture,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { ArmedConflictPMTilesSource as dataSource } from "../../../components/Datasets/ArmedConflict/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../Datasets/OvertureMaps/source";
import { ArmedConflictPMTilesSource as dataSource } from "../../../../components/Datasets/ArmedConflict/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../../../components/Datasets/OvertureMaps/source";

export const ArmedConflictWithOverture: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { OpenCellIdWithBaseMap } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../../components/mapStyleOptions";

const meta = {
component: OpenCellIdWithBaseMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { OpenCellIdPMTilesSource as source } from "../../../components/Datasets/OpenCellId/source";
import { OpenCellIdPMTilesSource as source } from "../../../../components/Datasets/OpenCellId/source";

export const OpenCellIdWithBaseMap: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { OpenCellIdWithDEM1A } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../../components/mapStyleOptions";

const meta = {
component: OpenCellIdWithDEM1A,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { OpenCellIdPMTilesSource as dataSource } from "../../../components/Datasets/OpenCellId/source";
import { DEM1APMTilesSource as terrainSource } from "../../../components/Datasets/DEM1A/source";
import { OpenCellIdPMTilesSource as dataSource } from "../../../../components/Datasets/OpenCellId/source";
import { DEM1APMTilesSource as terrainSource } from "../../../../components/Datasets/DEM1A/source";

export const OpenCellIdWithDEM1A: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { OpenCellIdWithDEM1AAndOverture } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../../../components/mapStyleOptions";

const meta = {
component: OpenCellIdWithDEM1AAndOverture,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { OpenCellIdPMTilesSource as dataSource } from "../../Datasets/OpenCellId/source";
import { DEM1APMTilesSource as terrainSource } from "../../Datasets/DEM1A/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../Datasets/OvertureMaps/source";
import { OpenCellIdPMTilesSource as dataSource } from "../../../../../components/Datasets/OpenCellId/source";
import { DEM1APMTilesSource as terrainSource } from "../../../../../components/Datasets/DEM1A/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../../../../components/Datasets/OvertureMaps/source";

export const OpenCellIdWithDEM1AAndOverture: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { OpenCellIdWithRwanda10AndOverture } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../../../components/mapStyleOptions";

const meta = {
component: OpenCellIdWithRwanda10AndOverture,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { OpenCellIdPMTilesSource as dataSource } from "../../../components/Datasets/OpenCellId/source";
import { Rwanda10PMTilesSource as terrainSource } from "../../../components/Datasets/Rwanda10/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../Datasets/OvertureMaps/source";
import { OpenCellIdPMTilesSource as dataSource } from "../../../../../components/Datasets/OpenCellId/source";
import { Rwanda10PMTilesSource as terrainSource } from "../../../../../components/Datasets/Rwanda10/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../../../../components/Datasets/OvertureMaps/source";

export const OpenCellIdWithRwanda10AndOverture: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { OpenCellIdWithOverture } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../../components/mapStyleOptions";

const meta = {
component: OpenCellIdWithOverture,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { OpenCellIdPMTilesSource as dataSource } from "../../Datasets/OpenCellId/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../Datasets/OvertureMaps/source";
import { OpenCellIdPMTilesSource as dataSource } from "../../../../components/Datasets/OpenCellId/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../../../components/Datasets/OvertureMaps/source";

export const OpenCellIdWithOverture: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { VientianeLanduseWithOpenCellIdAndOverture } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../../../components/mapStyleOptions";

const meta = {
component: VientianeLanduseWithOpenCellIdAndOverture,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { VientianeLandusePMTilesSource as landuseDataSource } from "../../Datasets/VientianeLanduse/source";
import { OpenCellIdPMTilesSource as cellIdDataSource } from "../../Datasets/OpenCellId/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../Datasets/OvertureMaps/source";
import { VientianeLandusePMTilesSource as landuseDataSource } from "../../../../../components/Datasets/VientianeLanduse/source";
import { OpenCellIdPMTilesSource as cellIdDataSource } from "../../../../../components/Datasets/OpenCellId/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../../../../components/Datasets/OvertureMaps/source";

export const VientianeLanduseWithOpenCellIdAndOverture: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { VientianeLanduseWithOverture } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../../components/mapStyleOptions";

const meta = {
component: VientianeLanduseWithOverture,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { VientianeLandusePMTilesSource as dataSource } from "../../Datasets/VientianeLanduse/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../Datasets/OvertureMaps/source";
import { VientianeLandusePMTilesSource as dataSource } from "../../../../components/Datasets/VientianeLanduse/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../../../components/Datasets/OvertureMaps/source";

export const VientianeLanduseWithOverture: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { VientianeLanduseMap } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../components/mapStyleOptions";

const meta = {
component: VientianeLanduseMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { VientianeLandusePMTilesSource as dataSource } from "../../Datasets/VientianeLanduse/source";
import { VientianeLandusePMTilesSource as dataSource } from "../../../components/Datasets/VientianeLanduse/source";

export const VientianeLanduseMap: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Meta, StoryObj } from "@storybook/react";
import { RwandaMap } from ".";
import { mapStyleOptions } from "../../mapStyleOptions";
import { mapStyleOptions } from "../../../components/mapStyleOptions";

const meta = {
component: RwandaMap,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { Layer, Map, Source } from "react-map-gl/maplibre";
import { useEffect } from "react";
import { OpenCellIdPMTilesSource as cellDataSource } from "../../Datasets/OpenCellId/source";
import { ArmedConflictPMTilesSource as conflictDataSource } from "../../Datasets/ArmedConflict/source";
import { Rwanda10PMTilesSource as terrainSource } from "../../Datasets/Rwanda10/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../Datasets/OvertureMaps/source";
import { OpenCellIdPMTilesSource as cellDataSource } from "../../../components/Datasets/OpenCellId/source";
import { ArmedConflictPMTilesSource as conflictDataSource } from "../../../components/Datasets/ArmedConflict/source";
import { Rwanda10PMTilesSource as terrainSource } from "../../../components/Datasets/Rwanda10/source";
import { OvertureMapsTransportationOnlyPMTilesSource as transportationSource } from "../../../components/Datasets/OvertureMaps/source";

export const RwandaMap: React.FC<{ mapStyle: string }> = ({
mapStyle,
Expand Down

0 comments on commit b35d61c

Please sign in to comment.