Back to Openlayers

{{ title }}

examples/templates/example.html

10.9.01.3 KB
Original Source

{{#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

{{ title }}

{{#each tags}} {{ ./tag }}{{ ./examples.length }} {{/each}}

{{{ contents }}}

{{ shortdesc }}

{{ md docs }}

main.js
js
{{ js.source }}
index.html
markup
<!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}}

{{./name}}
{{ ./source }}

{{/each}}

package.json
json
{{ pkgJson }}

{{#each js.local}} {{/each}}