We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932e928 commit 58475eaCopy full SHA for 58475ea
Shared/Samples/Identify features in WMS layer/IdentifyFeaturesInWMSLayerView.swift
@@ -69,6 +69,8 @@ struct IdentifyFeaturesInWMSLayerView: View {
69
guard let screenPoint = tapScreenPoint else {
70
return
71
}
72
+ calloutPlacement = nil
73
+
74
// Identify feature on water info layer.
75
let identifyResult = try await mapViewProxy.identify(
76
on: waterInfoLayer,
@@ -83,9 +85,6 @@ struct IdentifyFeaturesInWMSLayerView: View {
83
85
let location = mapViewProxy.location(fromScreenPoint: screenPoint) {
84
86
webViewText = htmlText
87
calloutPlacement = .location(location)
- } else {
- webViewText = ""
88
- calloutPlacement = nil
89
90
} catch {
91
self.error = error
0 commit comments