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.

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.

  • {i18n.unsupportedBrowser.chrome}
  • Firefox
  • Safari
  • undefined
Loading...

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

This sample shows how to filter points based on attributes like classification or return values.

There are two types of filters that can be set on PointCloudLayer.filters:

  • PointCloudValueFilter is useful for filtering points based on their classification value. In the sample, the filter displays only points that belong to vegetation:
const valueFilter = {
  type: "value",
  field: "CLASS_CODE",
  mode: "include",
  // values include low(3), medium(4) and high vegetation(5)
  values: [3, 4, 5]
};

pcLayer.filters.push(returnFilter);
  • PointCloudReturnFilter is based on the return information stored in each point. In the sample, the filter displays only points from the first return (these points are associated with the highest points in the landscape):
const returnFilter = {
  type: "return",
  field: "RETURNS",
  includedReturns: ["firstOfMany", "single"]
};

pcLayer.filters.push(returnFilter);

Sample search results

TitleSample
Loading...