========================================== CanvasPattern ========================================== First, this example creates a reusable CanvasPattern and a CanvasGradient. These countries are loaded from the GeoJSON file. The style function determines whether each country is populated with a pre-generated CanvasGradient or CanvasPattern. .. raw:: html `View the example `_