I would like to use WKWebView to show the webpage which is the road condition in Iceland. I using the following code, but it will show the whole webpage.
@IBOutlet weak var webView: WKWebView!
override func viewDidLoad() {
super.viewDidLoad()
if let url = URL(string: "http://www.road.is/travel-info/road-conditions-and-weather/entire-iceland-road-conditions-map/"){
let request = URLRequest(url: url)
webView.load(request)
}
}
I only want to show the picture below:
because this is not only a static picture, this includes javascript and jquery. I can not just download it as a picture and show by using image view.
how can I only load this interactive picture by using webview? thanks!