-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: clear now removes all rendered layers
- Loading branch information
1 parent
839bb90
commit fd7a208
Showing
15 changed files
with
364 additions
and
88 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,88 @@ | ||
<html> | ||
<head> | ||
<style> | ||
button { | ||
padding: 20px; | ||
background: #fdfdfd; | ||
border: solid 1px #ebebeb; | ||
cursor: pointer; | ||
border-radius: 10px; | ||
font-weight: bold; | ||
font-size: 20px; | ||
color: #565656; | ||
margin: 5px; | ||
border: solid 3px #565656; | ||
} | ||
|
||
<head> | ||
<style> | ||
button { | ||
padding: 20px; | ||
background: #fdfdfd; | ||
border: solid 1px #ebebeb; | ||
cursor: pointer; | ||
border-radius: 10px; | ||
font-weight: bold; | ||
font-size: 20px; | ||
color: #565656; | ||
margin: 5px; | ||
border: solid 3px #565656; | ||
} | ||
button:hover { | ||
background: white; | ||
border: solid 3px #222222; | ||
} | ||
|
||
button:hover { | ||
background: white; | ||
border: solid 3px #222222; | ||
} | ||
.example { | ||
cursor: pointer; | ||
font-family: sans-serif; | ||
height: 100%; | ||
width: 25%; | ||
outline: solid 1px #d7d7d7; | ||
} | ||
|
||
.example { | ||
cursor: pointer; | ||
font-family: sans-serif; | ||
height: 100%; | ||
width: 25%; | ||
outline: solid 1px #d7d7d7; | ||
} | ||
#keybind { | ||
font-family: sans-serif; | ||
background: white; | ||
width: 100px; | ||
align-items: center; | ||
display: flex; | ||
justify-content: center; | ||
border: solid 1px black; | ||
font-weight: bold; | ||
margin-left: 10px; | ||
} | ||
</style> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/leaflet@1.8.0/dist/leaflet.css" | ||
integrity="sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ==" | ||
crossorigin="" | ||
/> | ||
<link | ||
href="https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.css" | ||
rel="stylesheet" | ||
/> | ||
</head> | ||
|
||
#keybind { | ||
font-family: sans-serif; | ||
background: white; | ||
width: 100px; | ||
align-items: center; | ||
display: flex; | ||
justify-content: center; | ||
border: solid 1px black; | ||
font-weight: bold; | ||
margin-left: 10px; | ||
} | ||
</style> | ||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.8.0/dist/leaflet.css" | ||
integrity="sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ==" | ||
crossorigin="" /> | ||
<link href="https://api.mapbox.com/mapbox-gl-js/v2.9.1/mapbox-gl.css" rel="stylesheet" /> | ||
</head> | ||
<body style="width: 100%; height: 100%; margin: 0"> | ||
<div style="display: flex; flex-direction: row; height: 100%; width: 100%"> | ||
<div class="example" id="leaflet-map"></div> | ||
<div class="example" id="openlayers-map"></div> | ||
<div class="example" id="mapbox-map"></div> | ||
<div class="example" id="maplibre-map"></div> | ||
<div class="example" id="google-map"></div> | ||
</div> | ||
|
||
<body style="width: 100%; height: 100%; margin: 0"> | ||
<div style="display: flex; flex-direction: row; height: 100%; width: 100%"> | ||
<div class="example" id="leaflet-map"></div> | ||
<div class="example" id="openlayers-map"></div> | ||
<div class="example" id="mapbox-map"></div> | ||
<div class="example" id="maplibre-map"></div> | ||
<div class="example" id="google-map"></div> | ||
</div> | ||
<div | ||
style=" | ||
position: absolute; | ||
top: 0; | ||
z-index: 1000; | ||
width: 100%; | ||
margin: auto 0; | ||
display: flex; | ||
justify-content: center; | ||
" | ||
> | ||
<button id="select">Select</button> | ||
<button id="point">Point</button> | ||
<button id="greatcircle">Great Circle</button> | ||
<button id="linestring">LineString</button> | ||
<button id="polygon">Polygon</button> | ||
<button id="freehand">Freehand</button> | ||
<button id="circle">Circle</button> | ||
<button id="rectangle">Rectangle</button> | ||
|
||
<div style=" | ||
position: absolute; | ||
top: 0; | ||
z-index: 1000; | ||
width: 100%; | ||
margin: auto 0; | ||
display: flex; | ||
justify-content: center; | ||
"> | ||
<button id="select">Select</button> | ||
<button id="point">Point</button> | ||
<button id="greatcircle">Great Circle</button> | ||
<button id="linestring">LineString</button> | ||
<button id="polygon">Polygon</button> | ||
<button id="freehand">Freehand</button> | ||
<button id="circle">Circle</button> | ||
<button id="rectangle">Rectangle</button> | ||
<div id="keybind"></div> | ||
</div> | ||
<script src="./bundle.js"></script> | ||
</body> | ||
|
||
</html> | ||
<button id="clear">Clear</button> | ||
<div id="keybind"></div> | ||
</div> | ||
<script src="./bundle.js"></script> | ||
</body> | ||
</html> |
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
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
Oops, something went wrong.