I used to be going via the documentation of azure maps to combine in iOS app, Requirement is easy or put a pin in azure and on click on of pin ought to show some information.
Created the credential and will load the map utilizing html. Publish that I’m making an attempt to know how precisely we are able to pin to the map, I see all over the place native SDK is in regards to the expire and quite urged to make use of WebSDK , However how will we simply put a pin when within the map which is generated utilizing html. HTML file is copied from textual content. Information would not appear to deal with the precise difficulty
` webView = WKWebView(body: view.bounds)
webView.navigationDelegate = self
view.addSubview(webView)
// Load native HTML file
loadLocalHTMLFile()
// Do any further setup after loading the view.
}
func loadLocalHTMLFile() {
if let htmlPath = Bundle.most important.path(forResource: "map", ofType: "html") {
do {
let htmlString = attempt String(contentsOfFile: htmlPath, encoding: .utf8)
webView.loadHTMLString(htmlString, baseURL: Bundle.most important.bundleURL)
} catch {
print("Error loading HTML file: (error)")
}
} else {
print("HTML file not discovered.")
}
}
I learn the documentation and appeared on the samples would not appear to deal with any difficulty placing the pin utilizing swift