This example displays a polygon covering part of Western Europe displayed on a moveable map.

Code

A polygon is created using the H.map.Polygon class, passing in an H.geo.LineString holding the vertices of the polygon. The look-and-feel of the polygon can be altered by adding the style parameter