Module com.esri.arcgisruntime
Class LevelLayerDefinition
java.lang.Object
com.esri.arcgisruntime.mapping.floor.LevelLayerDefinition
- All Implemented Interfaces:
JsonSerializable
Defines the properties of the layer that contains floor levels for a floor-aware map or scene. A floor level describes
the footprint of each occupiable floor contained in a managed facility.
- Since:
- 100.12.0
- See Also:
-
Constructor Summary
ConstructorDescriptionLevelLayerDefinition
(String layerId, String levelIdField, String levelNumberField, String shortNameField, String longNameField, String verticalOrderField, String facilityIdField) Creates a new LevelLayerDefinition object using the specified layer ID, level ID field, level number field, short name field, long name field, vertical order field, and facility ID field. -
Method Summary
Modifier and TypeMethodDescriptionstatic LevelLayerDefinition
Creates a LevelLayerDefinition instance from a JSON string.Gets the name of the attribute field that contains each floor level feature's facility identifier (a foreign key to the layer that contains facility features).Gets an ID that specifies a layer in the map or scene that contains floor level features.Gets the name of the attribute field that contains each floor level feature's unique identifier.Gets the name of the attribute field that contains each floor level feature's level number specific to its facility.Gets the name of the attribute field that contains each floor level feature's long name.Gets the name of the attribute field that contains each floor level feature's short name.Gets unknown data from the source JSON.Gets unsupported data from the source JSON.Gets the name of the attribute field that contains each floor level feature's vertical order.toJson()
Serializes this object to a JSON string.
-
Constructor Details
-
LevelLayerDefinition
public LevelLayerDefinition(String layerId, String levelIdField, String levelNumberField, String shortNameField, String longNameField, String verticalOrderField, String facilityIdField) Creates a new LevelLayerDefinition object using the specified layer ID, level ID field, level number field, short name field, long name field, vertical order field, and facility ID field.- Parameters:
layerId
- an ID that specifies a layer in the map or scene that describes floor levelslevelIdField
- the name of the attribute field that contains each level feature's unique identifierlevelNumberField
- the name of the attribute field that contains each level feature's level number specific to its facilityshortNameField
- the name of the attribute field that contains each level feature's short namelongNameField
- the name of the attribute field that contains each level feature's long nameverticalOrderField
- the name of the attribute field that contains each level feature's vertical order. The vertical order defines the order of display in a floor filtering UI component, and it also references the floor levels of an Indoor Positioning System.facilityIdField
- the name of the attribute field that contains each level feature's facility identifier (a foreign key to the layer that contains facility features)- Throws:
IllegalArgumentException
- if layerId is nullIllegalArgumentException
- if levelIdField is nullIllegalArgumentException
- if levelNumberField is nullIllegalArgumentException
- if shortNameField is nullIllegalArgumentException
- if longNameField is nullIllegalArgumentException
- if verticalOrderField is nullIllegalArgumentException
- if facilityIdField is null- Since:
- 100.12.0
-
-
Method Details
-
getFacilityIdField
Gets the name of the attribute field that contains each floor level feature's facility identifier (a foreign key to the layer that contains facility features).- Returns:
- the name of the attribute field that contains each floor level feature's facility identifier
- Since:
- 100.12.0
-
getLayerId
Gets an ID that specifies a layer in the map or scene that contains floor level features.- Returns:
- an ID that specifies a layer in the map or scene that contains floor level features
- Since:
- 100.12.0
-
getLevelIdField
Gets the name of the attribute field that contains each floor level feature's unique identifier.- Returns:
- the name of the attribute field that contains each floor level feature's unique identifier
- Since:
- 100.12.0
-
getLevelNumberField
Gets the name of the attribute field that contains each floor level feature's level number specific to its facility.- Returns:
- the name of the attribute field that contains each floor level feature's level number specific to its facility
- Since:
- 100.12.0
-
getLongNameField
Gets the name of the attribute field that contains each floor level feature's long name.- Returns:
- the name of the attribute field that contains each floor level feature's long name
- Since:
- 100.12.0
-
getShortNameField
Gets the name of the attribute field that contains each floor level feature's short name.- Returns:
- the name of the attribute field that contains each floor level feature's short name
- Since:
- 100.12.0
-
getVerticalOrderField
Gets the name of the attribute field that contains each floor level feature's vertical order.The vertical order defines the order of display in a floor filtering UI component, and it also references the floor levels of an Indoor Positioning System.
- Returns:
- the name of the attribute field that contains each floor level feature's vertical order
- Since:
- 100.12.0
-
getUnknownJson
Description copied from interface:JsonSerializable
Gets unknown data from the source JSON.Unknown JSON is a Map of values not defined in the ArcGIS specification used to create this object but found in the source JSON. If the object is written back to JSON, any unknown JSON data is not persisted. The ArcGIS specification may be for a web map, web scene, REST API, and so on.
- Specified by:
getUnknownJson
in interfaceJsonSerializable
- Returns:
- an unmodifiable Map containing unknown data from the source JSON
-
getUnsupportedJson
Description copied from interface:JsonSerializable
Gets unsupported data from the source JSON.Unsupported JSON is a Map of values defined in the ArcGIS specification used to create this object but not currently used in this API. If the object is written back to JSON, any unsupported JSON data is persisted. The ArcGIS specification may be from a web map, web scene, REST API, and so on.
- Specified by:
getUnsupportedJson
in interfaceJsonSerializable
- Returns:
- an unmodifiable Map containing unsupported data from the source JSON
-
fromJson
Creates a LevelLayerDefinition instance from a JSON string.- Parameters:
json
- a valid string in JSON format- Returns:
- a LevelLayerDefinition instance
- Throws:
IllegalArgumentException
- if json is null or empty- Since:
- 100.12.0
-
toJson
Description copied from interface:JsonSerializable
Serializes this object to a JSON string. Note that unknown JSON is omitted from the serialized string.- Specified by:
toJson
in interfaceJsonSerializable
- Returns:
- a JSON string
-