@openlayers-elements/bundle

v0.1.0
This package can be used to very easily add maps to static web pages. Simply add the necessary scripts to you HTML. At minimum, you'll need the `ol-map` element and a layer, such as `ol-layer-openstreetmap`

Open Layers element bundle

This package can be used to very easily add maps to static web pages. Simply add the necessary scripts to you HTML. At minimum, you'll need the ol-map element and a layer, such as ol-layer-openstreetmap

<head>
  <script async defer src="/path/to/assets/@openlayers-elements/bundle/dist/ol-map.js" type="module"></script>
  <script async defer src="/path/to/assets/@openlayers-elements/bundle/dist/ol-layer-openstreetmap.js" type="module"></script>
</head>

<body>
  <ol-map>
    <ol-layer-openstreetmap></ol-layer-openstreetmap>
  </ol-map>
</body>

Consult the documentation for a list of available elements.

CDN usage

If you do not wish or cannot install the package, you can load the elements from a CDN, such as unpkg:

<script src="https://unpkg.com/@openlayers-elements/bundle/dist/ol-map.js"></script>
npm i @openlayers-elements/bundle

Metadata

  • Unknown
  • Whatever
  • Unknown
  • released 12/13/2022

Downloads

Maintainers