diff --git a/public/stylejson/geoservices.un.org/clearmap_dark/style.json b/public/stylejson/geoservices.un.org/clearmap_dark/style.json new file mode 100644 index 0000000..250d106 --- /dev/null +++ b/public/stylejson/geoservices.un.org/clearmap_dark/style.json @@ -0,0 +1,21 @@ +{ + "version": 8, + "sources": { + "un_clearmap": { + "type": "raster", + "tiles": [ + "https://geoservices.un.org/arcgis/rest/services/ClearMap_WebDark/MapServer/tile/{z}/{y}/{x}" + ], + "attribution": "UN Geospatial" + } + }, + "layers": [ + { + "id": "un_clearmap_dark", + "source": "un_clearmap_dark", + "type": "raster", + "maxzoom": 6, + "minzoom": 0 + } + ] +} diff --git a/src/components/Maps/UNClearMapDarkRaster/index.stories.ts b/src/components/Maps/UNClearMapDarkRaster/index.stories.ts new file mode 100644 index 0000000..88b4e12 --- /dev/null +++ b/src/components/Maps/UNClearMapDarkRaster/index.stories.ts @@ -0,0 +1,14 @@ +import { Meta, StoryObj } from "@storybook/react"; +import { UNClearMapDarkRaster as MapComponent } from "."; + +const meta: Meta = { + component: MapComponent, + parameters: { + layout: 'fullscreen', + }, +} satisfies Meta; + +export default meta; +type Story = StoryObj; + +export const Preview: Story = {}; diff --git a/src/components/Maps/UNClearMapDarkRaster/index.tsx b/src/components/Maps/UNClearMapDarkRaster/index.tsx new file mode 100644 index 0000000..6814860 --- /dev/null +++ b/src/components/Maps/UNClearMapDarkRaster/index.tsx @@ -0,0 +1,19 @@ +import { Map } from "react-map-gl/maplibre"; +import "maplibre-gl/dist/maplibre-gl.css"; + +export const UNClearMapDarkRaster = () => { + return ( + + ); +};