Maps API for JavaScript Developer's Guide

H.service.extension.RowFilter

Type Definition Summary

This function is a predicate, to test each H.service.extension.dataView.IRow.<*> from the PDE/CLE response. The ID of the according layer is passed as second argument. Return true to keep the row, otherwise false.

[ For full details, see the Type Definition Details ]

Type Definition Description

This function is a predicate, to test each H.service.extension.dataView.IRow.<*> from the PDE/CLE response. The ID of the according layer is passed as second argument. Return true to keep the row, otherwise false.

It must not modify the row! It must be a pure JavaScript function.

Example

function (row, layerId) {
  // Filter rows from layer "ROAD_GEOM_FC1" with link ID "123"
  return layerId == 'ROAD_GEOM_FC1' && row.getCell('LINK_ID') == '123';
}