-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from UNopenGIS/add-gsi-seamlessphoto
Add GIS SeamlessPhoto Preview
- Loading branch information
Showing
16 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
"arcgisonline", | ||
"BODC", | ||
"clearmap", | ||
"cyberjapandata", | ||
"DAAC", | ||
"GEBCO", | ||
"geofabrik", | ||
|
22 changes: 22 additions & 0 deletions
22
public/stylejson/cyberjapandata.gsi.go.jp/xyz/seamlessphoto/style.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"version": 8, | ||
"sources": { | ||
"gsi_xyz_seamlessphoto": { | ||
"type": "raster", | ||
"tiles": [ | ||
"https://cyberjapandata.gsi.go.jp/xyz/seamlessphoto/{z}/{x}/{y}.png" | ||
], | ||
"tileSize": 256, | ||
"attribution": "<a href=\"https://maps.gsi.go.jp/development/ichiran.html\">地理院タイル</a>, データソース:Landsat8画像(GSI,TSIC,GEO Grid/AIST), Landsat8画像(courtesy of the U.S. Geological Survey), 海底地形(GEBCO) / Images on 世界衛星モザイク画像 obtained from site https://lpdaac.usgs.gov/data_access maintained by the NASA Land Processes Distributed Active Archive Center (LP DAAC), USGS/Earth Resources Observation and Science (EROS) Center, Sioux Falls, South Dakota, (Year). Source of image data product." | ||
} | ||
}, | ||
"layers": [ | ||
{ | ||
"id": "gsi_xyz_seamlessphoto", | ||
"source": "gsi_xyz_seamlessphoto", | ||
"type": "raster", | ||
"maxzoom": 15, | ||
"minzoom": 5 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
14 changes: 14 additions & 0 deletions
14
src/components/BaseMaps/SatelliteImagery/GSISeamlessPhoto/index.stories.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { Meta, StoryObj } from "@storybook/react"; | ||
import { GSISeamlessPhoto } from "."; | ||
|
||
const meta = { | ||
component: GSISeamlessPhoto, | ||
parameters: { | ||
layout: "fullscreen", | ||
}, | ||
} satisfies Meta<typeof GSISeamlessPhoto>; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof GSISeamlessPhoto>; | ||
|
||
export const Preview: Story = {}; |
19 changes: 19 additions & 0 deletions
19
src/components/BaseMaps/SatelliteImagery/GSISeamlessPhoto/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { Map } from "react-map-gl/maplibre"; | ||
import "maplibre-gl/dist/maplibre-gl.css"; | ||
|
||
export const GSISeamlessPhoto = () => { | ||
return ( | ||
<Map | ||
initialViewState={{ | ||
longitude: 0, | ||
latitude: 0, | ||
zoom: 4, | ||
}} | ||
dragPan={false} | ||
scrollZoom={false} | ||
hash={false} | ||
style={{ width: "100%", height: "100%" }} | ||
mapStyle="stylejson/cyberjapandata.gsi.go.jp/xyz/seamlessphoto/style.json" | ||
/> | ||
); | ||
}; |
File renamed without changes.
File renamed without changes.