Grid cell shape:

Cell size units:

Cell size

Draw gridded polygon This sample shows how to calculate a gridded pattern within a drawn polygon based on a physical distances. For gridded patterns that are based on pixel distances, use a fill pattern with a polygon. This sample uses the open source Turf.js library to for some of the spatial calculation.