You are using a browser that is no longer supported. Please use the latest version of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. For more information please see the System Requirements.
Skip To ContentArcGIS for DevelopersSign In Dashboard
Loading...

Note: Support for 3D on mobile devices may vary, view the system requirements for more information.

This sample shows how to set pattern fills on polygons. When rendering multiple overlapping polygons representing different types of areas using only color to encode the information, it can become difficult to distinguish between the areas. In urban planning for example, there are areas representing different zones and other overlapping areas representing parcels.

In this example we are using a polygon pattern fill to render the urban renewal area overlay for an urban development plan.

The pattern style is set on the FillSymbol3DLayer on a PolygonSymbol3D:

const symbol = {
  type: "polygon-3d",
  symbolLayers: [{
    type: "fill",
    material: { color: "red" },
    outline: { color: "red" },
    pattern: {
      type: "style",
      style: "cross"
    }
  }]
};

Sample search results

TitleSample
Loading...