Add custom element example

This commit is contained in:
Andreas Hocevar
2020-02-18 21:32:31 +01:00
parent b6abe036ce
commit 7fee85734a
4 changed files with 54 additions and 16 deletions

View File

@@ -0,0 +1,9 @@
---
layout: example.html
title: Custom map element
shortdesc: Example of a custom element with a map.
docs: >
The example creates and registers a custom element, `ol-map`, which contains a simple map. **Note:** Only works in browsers that supports `ShadowRoot`.
tags: "es2015, web-component, custom-element, shadow-dom"
---
<ol-map id="map" class="map"></ol-map>