Skip to content

Commit

Permalink
Add OpenStreetMapJpOSMBrightVector to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
yuiseki committed Jun 16, 2024
1 parent 6b7bbf8 commit be7f53c
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import './App.css'
import { ArcGISWorldImagery } from './components/ArcGISWorldImagery'
import { OpenStreetMapFrHotRaster } from './components/OpenStreetMapFrHotRaster'
import { OpenStreetMapJpOSMBrightVector } from './components/OpenStreetMapJpOSMBrightVector'
import { OpenStreetMapOrgRaster } from './components/OpenStreetMapOrgRaster'
import { UNClearMapRaster } from './components/UNClearMapRaster'

Expand All @@ -17,6 +18,7 @@ function App() {
<UNClearMapRaster />
<OpenStreetMapOrgRaster />
<OpenStreetMapFrHotRaster />
<OpenStreetMapJpOSMBrightVector />
<ArcGISWorldImagery />
</div>
</div>
Expand Down
24 changes: 24 additions & 0 deletions src/components/OpenStreetMapJpOSMBrightVector/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import { Map } from "react-map-gl/maplibre";
import "maplibre-gl/dist/maplibre-gl.css";

export const OpenStreetMapJpOSMBrightVector = () => {
return (
<div>
<h2>
https://tile.openstreetmap.jp/styles/osm-bright/style.json
</h2>
<Map
initialViewState={{
longitude: 0,
latitude: 0,
zoom: 4,
}}
dragPan={false}
scrollZoom={false}
hash={false}
style={{ width: "100%", height: "400px" }}
mapStyle="https://tile.openstreetmap.jp/styles/osm-bright/style.json"
/>
</div>
);
};

0 comments on commit be7f53c

Please sign in to comment.