ol-ext: Openlayers iFrame API

The ol/ext/IFrameAPI lets you embed an ol map on your website and control the map using JavaScript.
You don't need to include Openlayers js or css in your main page, just add the js API and the widget (as an IFrame)...
This lets you embed maps created in an other site into yours and control them with the API.
Draw a polygon in the IFrame:
Select an object in the IFrame:
Get/set placemark position:


Look messages in the console...
See example on CodePen
Connecting API...