FacilityLayerDefinition constructor

FacilityLayerDefinition({
  1. required String layerId,
  2. required String facilityIdField,
  3. required String nameField,
  4. String? siteIdField,
})

Creates a new FacilityLayerDefinition object with the specified Layer.id, facility id attribute field, facility name attribute field, and site id attribute field.

Parameters:

  • layerId — An ID that specifies a layer in the map or scene that contains facilities.
  • facilityIdField — The name of the attribute field that contains a facility feature's unique identifier.
  • nameField — The name of the attribute field that contains a facility feature's name.
  • siteIdField — The name of the attribute field that contains a facility feature's site identifier (a foreign key to the layer that contains sites).