Hi we have an ESRI SDK implementation we have version 200.3.0 and we are having problems visualizing the labels in the polygons, here are some flows we checked and tried to solve, we ask for your help to find a way to solve it.
- it is identified that this error is only in some polygons, when creating lines and points the label works correctly.
- Structures were reviewed at the level of the JSON saved in the database and tests were performed with this, and if you change from polygon to line string the label works, but not with polygons, also reviewed structures with polygons with labels and without labels and states are similar.
- tests were realized by creating polygons from the iOS app and on the web and the error persists.
- the LabelDefinition class was reviewed, and tests were made changing the appearance of the label to verify if this influenced in some way but was also unsuccessful.
- checked the forums and found this possible solution using GeometryEngine.simplifyOrNul but it did not work.
This is our current implementation for adding the labels
val graphicAttributes = mutableMapOf<String, Any>(
"identifier" to dataAttributes.identifier,
"title" to title,
"subtitle" to subtitle,
"name" to name
)
type = ArcGISGeoFeatureType.POLYGON
graphic = constructor.getGraphic(marker, graphicAttributes)
override fun getGraphic(geometry: Geometry, attributes: Map<String, Any>): Graphic {
return Graphic(geometry, attributes)
}