examples/templates/example.html
{{#each css.local}} {{/each}}
This example uses OpenLayers v{{ olVersion }}. The latest is v. {{#if ./experimental}} This example uses features that are not part of the stable API and subject to change between releases. Consult the API documentation to see what is supported in the latest release. {{/if}} Edit
{{#each tags}} {{ ./tag }}{{ ./examples.length }} {{/each}}
{{{ contents }}}
{{ shortdesc }}
{{ md docs }}
{{ js.source }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>{{ title }}</title>
{{#each css.remote}}
<link rel="stylesheet" href="{{ . }}">
{{/each}}
<link rel="stylesheet" href="node_modules/ol/ol.css">
<style>
.map {
width: 100%;
height: 400px;
}
{{#if css.source}}{{ indent css.source spaces=6 }}{{/if}} </style>
</head>
<body>
{{ indent contents spaces=4 }}
{{#each js.remote}}
<script src="{{ . }}"></script>
{{/each}}
<script type="module" src="main.js"></script>
</body>
</html>
{{#each extraSources}}
{{ ./source }}
{{/each}}
{{ pkgJson }}
{{#each js.local}} {{/each}}