Polygon masks
This sample shows how to create polygon masks for both regular Polygon and MultiPolygon geometries. Polygon masks limit the viewable area of the map to a polygon area, allowing the user to better focus on a specific area.