-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't working
Description
The calls for adding or removing a graphic take longer on android than they do on iOS.
This is due to a workaround what in some cases the map is not beeing refreshed and we therefore refresh the map manually.
Line 522 in aa37a15
updateMap().onSuccess { updateResult -> |
private fun onRemoveGraphic(call: MethodCall, result: MethodChannel.Result) {
/*Other code */
// Don't use removeAll because this will not trigger a redraw.
graphicsToRemove.forEach(defaultGraphicsOverlay.graphics::remove)
lifecycle.coroutineScope.launch {
updateMap().onSuccess { // <------
result.success(true)
}.onFailure { e ->
result.finishWithError(e)
}
}
}
- See if this workaround is still required after the recent arcgis update
- If its required, run
updateMap
after we calledresult.success
and ignore the error of that call
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working