2

I have a WKWebView in my app that displays a map. It is possible to add local tiles to this map, i.e. satellite images. This local tiles are located in the document folder of my app.

Now I need to intercept when the WKWebView loads one of those files, so I can use an image from another source.

Already tried a CustomSchemeHandler() with the Scheme file:/// but because that is not a valid URL, it does not work. Also the decidePolicyFor navigationAction method is not called when loading the images.

Is there a way to achieve what I want?

3
  • Local tiles means, when tapping on annotations, you want to show satellite image? Commented Sep 23, 2019 at 23:31
  • There are no annotations to tab. But my map component shows satellite images. But when it accesses these images I want to intercept the access. Commented Sep 24, 2019 at 7:20
  • can you please add the code from your view/ViewController to get more information? Commented Sep 24, 2019 at 22:32

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.