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

Unsupported browser

You are using a browser that is not supported. JavaScript API works on the latest versions of Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. Use one of these browsers and provide your feedback through GeoNet, the Esri Community.

  • {}
  • Firefox
  • Safari
  • undefined

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

colorModulation is used to display scanned surfaces of a point cloud in a more realistic way by adjusting the color to the intensity value captured by the scanner. The brightness of the color is reduced with lower intensity values, creating darker areas and helping to distinguish different parts of the scanned surface.

This sample shows how to get more information from a classified point cloud data by using intensity based color modulation.

// Intensity values can vary between 0 and 255. The values set here are
// minimum and maximum values of the Intensity field of the point cloud layer.
var colorModulation = {
  field: "INTENSITY",
  minValue: 35, // colors of points with this intensity value will be the darkest
  maxValue: 211 // colors of points with maximum intensity value will be displayed the same

This property can be set on any renderer, in this sample we used the PointCloudUniqueValueRenderer which assigns colors to points based on a given classification:

var pcLayer = new PointCloudLayer({
  url: "",
  renderer: {
    type: "point-cloud-unique-value",  // autocasts as new pointCloudUniqueValueRenderer()
    field: "CLASS_CODE", // field containing data for standard LAS classification
    colorModulation: colorModulation,
    pointsPerInch: 35,
    colorUniqueValueInfos: [
      values: ["1"],
      label: "Unassigned",
      color: [178, 178, 178]
      values: ["2"],
      label: "Ground",
      color: [168, 112, 0]
      values: ["5"],
      label: "High vegetation",
      color: [205, 245, 121]
      values: ["6"],
      label: "Building",
      color: [229, 75, 65]
      values: ["7"],
      label: "Low Point",
      color: [229, 0, 0]

Sample search results