getController static method
Implementation
static Future<WebMapController?> getController(
int viewId, WebMapOption option) async {
for (int i = 0; i < maxAttempts; i++) {
var element = web.document.getElementById("map_$viewId");
if (element != null) {
return WebMapController(element, option);
}
await Future.delayed(const Duration(seconds: retryTime));
}
return null;
}