how to overlay the square from the service feature table

404
1
Jump to solution
01-22-2023 11:06 AM
VarmaLanke1
New Contributor

Hi All,

 

Please help me out on below issue

how to overlay the square from the service feature table. Thank you

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Shubham_Sharma
Esri Contributor

@VarmaLanke1 Assuming you have a service feature table with the square polygon to overlay on the map. You can use the Feature service table's URL to create a FeatureLayer  which can be added to the map's OperationalLayers.

Example:

 

 

// initialize the service feature table using a URL
val serviceFeatureTable = ServiceFeatureTable(tableURL)
// create a feature layer with the feature table
val featureLayer = FeatureLayer(serviceFeatureTable)
// set the feature layer on the map
mapView.map.operationalLayers.add(featureLayer)

 

 

Check out the sample using service feature table: https://developers.arcgis.com/kotlin/sample-code/add-feature-layers/

View solution in original post

0 Kudos
1 Reply
Shubham_Sharma
Esri Contributor

@VarmaLanke1 Assuming you have a service feature table with the square polygon to overlay on the map. You can use the Feature service table's URL to create a FeatureLayer  which can be added to the map's OperationalLayers.

Example:

 

 

// initialize the service feature table using a URL
val serviceFeatureTable = ServiceFeatureTable(tableURL)
// create a feature layer with the feature table
val featureLayer = FeatureLayer(serviceFeatureTable)
// set the feature layer on the map
mapView.map.operationalLayers.add(featureLayer)

 

 

Check out the sample using service feature table: https://developers.arcgis.com/kotlin/sample-code/add-feature-layers/

0 Kudos