-
Notifications
You must be signed in to change notification settings - Fork 4
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
1 parent
18e1564
commit 41ec70e
Showing
4 changed files
with
698 additions
and
26 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,31 +1,126 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="initial-scale=1.0, width=device-width" /> | ||
<title>OpenLayers Benchmark</title> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" | ||
crossorigin="anonymous" | ||
/> | ||
<link rel="stylesheet" type="text/css" href="/node_modules/ol/ol.css" /> | ||
<link rel="stylesheet" type="text/css" href="/theme/site.css" /> | ||
<link | ||
rel="icon" | ||
type="image/svg+xml" | ||
href="/theme/img/logo-light.svg" | ||
media="(prefers-color-scheme: light)" | ||
/> | ||
<link | ||
rel="icon" | ||
type="image/svg+xml" | ||
href="/theme/img/logo-dark.svg" | ||
media="(prefers-color-scheme: dark)" | ||
/> | ||
<style> | ||
.cases { | ||
display: block; | ||
padding: 0.65rem; | ||
height: 140px; | ||
margin: 0.65rem 0; | ||
overflow: auto; | ||
} | ||
.cases p.description { | ||
font-size: smaller; | ||
margin: 5px 0; | ||
} | ||
a.cases { | ||
text-decoration: none; | ||
} | ||
a.cases:hover :first-child { | ||
text-decoration: underline; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<header | ||
class="navbar navbar-expand-md navbar-dark mb-3 px-3 py-0 fixed-top" | ||
> | ||
<a class="navbar-brand" href="/"> | ||
<img src="/theme/img/logo-dark.svg" width="70" height="70" alt="Logo" /> | ||
OpenLayers Benchmark | ||
</a> | ||
<button | ||
class="navbar-toggler" | ||
type="button" | ||
data-bs-toggle="collapse" | ||
data-bs-target="#olmenu" | ||
aria-controls="olmenu" | ||
aria-expanded="false" | ||
aria-label="Toggle navigation" | ||
> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
</header> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="initial-scale=1.0, user-scalable=no, width=device-width"> | ||
<title>Benchmark Examples</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
</head> | ||
|
||
<body> | ||
<ul> | ||
<li> | ||
<a href="cases/polygon-rendering/">Polygon Rendering</a> | ||
</li> | ||
<li> | ||
<a href="cases/point-rendering/">Point Rendering</a> | ||
</li> | ||
<li> | ||
<a href="cases/line-rendering/">Line Rendering</a> | ||
</li> | ||
<li> | ||
<a href="cases/vector-tiles-rendering/">Vector Tiles Rendering</a> | ||
</li> | ||
<li> | ||
<a href="cases/filtering-shapes/">Filtering Shapes</a> | ||
</li> | ||
</ul> | ||
</body> | ||
<div id="app" class="container-fluid"> | ||
<div class="row mt-3"> | ||
<div | ||
class="col-md-4 col-sm-6" | ||
v-for="caseItem in cases" | ||
:key="caseItem.link" | ||
> | ||
<a :href="caseItem.link" class="cases bg-light border rounded"> | ||
<strong>{{ caseItem.title }}</strong><br /> | ||
<small>({{ caseItem.link }})</small> | ||
<p class="description">{{ caseItem.shortdesc }}</p> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script> | ||
<script> | ||
new Vue({ | ||
el: "#app", | ||
data: { | ||
cases: [ | ||
{ | ||
title: "Polygon Rendering", | ||
link: "cases/polygon-rendering/", | ||
shortdesc: | ||
"Performance comparison of Canvas and WebGL for rendering polygon geometries.", | ||
}, | ||
{ | ||
title: "Point Rendering", | ||
link: "cases/point-rendering/", | ||
shortdesc: | ||
"Performance comparison of Canvas and WebGL for rendering point data.", | ||
}, | ||
{ | ||
title: "Line Rendering", | ||
link: "cases/line-rendering/", | ||
shortdesc: | ||
"Performance comparison of Canvas and WebGL for rendering line geometries.", | ||
}, | ||
{ | ||
title: "Vector Tiles Rendering", | ||
link: "cases/vector-tiles-rendering/", | ||
shortdesc: | ||
"Performance comparison of Canvas and WebGL for rendering vector tiles.", | ||
}, | ||
{ | ||
title: "Filtering Shapes", | ||
link: "cases/filtering-shapes/", | ||
shortdesc: | ||
"Performance comparison of Canvas and WebGL for filtering shapes.", | ||
}, | ||
], | ||
}, | ||
}); | ||
</script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.