This is a sample that creates a mask image from administrative boundary GeoJSON, applies the mask image, and calculates statistical values. The mask image creation uses polygon triangulation by mapbox earcut. Some execution results are displayed in the browser console.