-
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.
- Loading branch information
Showing
5 changed files
with
60 additions
and
51 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
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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
import styles from "./styles.module.scss"; | ||
|
||
export const MapStyleSelector: React.FC<{ | ||
mapStyleJsonUrl: string; | ||
onSelectMapStyleJsonUrl: (e: React.ChangeEvent<HTMLSelectElement>) => void; | ||
}> = ({ mapStyleJsonUrl, onSelectMapStyleJsonUrl }) => { | ||
return ( | ||
<select | ||
className={styles.select} | ||
value={mapStyleJsonUrl} | ||
onChange={onSelectMapStyleJsonUrl} | ||
> | ||
<option value={"/map_styles/fiord-color-gl-style/style.json"}> | ||
🗺 OSM Fiord color (vector) | ||
</option> | ||
<option | ||
value={"https://tile.openstreetmap.jp/styles/osm-bright/style.json"} | ||
> | ||
🗺 OSM JP bright (vector) | ||
</option> | ||
<option value={"/map_styles/osm-hot/style.json"}> | ||
🗺 OSM HOT (raster) | ||
</option> | ||
<option value={"/map_styles/arcgis-world-imagery/style.json"}> | ||
🛰 ArcGIS World Imagery (raster) | ||
</option> | ||
</select> | ||
); | ||
}; |
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 @@ | ||
.select { | ||
position: absolute; | ||
bottom: 10px; | ||
left: 10px; | ||
z-index: 10000; | ||
max-width: 250px; | ||
text-overflow: ellipsis; | ||
font-size: 1rem; | ||
line-height: 1.4; | ||
appearance: none; | ||
border-radius: 12px; | ||
min-height: 20px; | ||
margin: 0px; | ||
padding: 2px 8px; | ||
cursor: pointer; | ||
color: rgba(0, 0, 0, 0.8); | ||
background-color: white; | ||
font-family: sans-serif, emoji; | ||
} |