SiteLayerDefinition constructor

SiteLayerDefinition({
  1. required String layerId,
  2. required String nameField,
  3. required String siteIdField,
})

Creates a new SiteLayerDefinition object with the specified layer id, site name attribute field and site id attribute field.

Parameters:

  • layerId — An ID that specifies a layer in the map or scene that contains site features.
  • nameField — The name of the attribute field that contains each site feature's name.
  • siteIdField — The name of the attribute field that contains each site feature's unique identifier.