PointCloudLayer - change point size and density

This sample shows how to change size and density of points in a PointCloudLayer. Each PointCloudLayer renderer has two properties: pointSizeAlgorithm and pointsPerInch. Setting these will adjust the size and the density of the points.

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
const pointCloudRGBRenderer = {
  type: "point-cloud-rgb", // autocasts as new PointCloudRGBRenderer()
  field: "RGB",
  pointSizeAlgorithm: {
    type: "fixed-size",
    useRealWorldSymbolSizes: false,
    size: 10
  },
  pointsPerInch: 15
};

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.