Add custom element example
This commit is contained in:
9
examples/es2015-custom-element.html
Normal file
9
examples/es2015-custom-element.html
Normal 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>
|
||||
Reference in New Issue
Block a user