Can Open Layer 3 be used as a web component?

788 Views Asked by At

i'm tasked with attempting to use Open Layer 3 as a web component. I've tried searching online but couldn't come up with any definite Yes or No answer. Does anyone here have an idea? And if it is yes, a clue to some website or book containing the guide would be most helpful. Thank you in advance

2

There are 2 best solutions below

1
On

You can find some examples for using OpenLayers 3 as a web component.

Most of them are based on Polymer, a library making possible "to shim" HTML 5 web component features, mainly supported by Google.

The repositories I found so far are :

You should be aware that most of them are far from complete. It's mainly showcases and you will have to extend them depending of your purpose.

PS: For info, the web component world is not developed as it could be. You can see a recent article from Mozilla Hacks about them

0
On

There is now an OpenLayers 5 web component available:

Full disclosure: This is done by our company