Android Question How to reset a google map and erase markers

Mark Read

Well-Known Member
Licensed User
Longtime User
I have an app with three components: a button, an edittext and a webview.

The button uses a search criteria entered in the edittext to generate markers for google maps. My problem is how to clear the map if a new search is required?

A html file is created locally which is read into the webview, therefore I would have at least the possibilty to:

1. Delete the webview and make a new one
2. load a dummy file with nothing in it and then the real file - tried this, did not work
3. Do something else?

Ideas please.
 

Attachments

  • screenshot.png
    screenshot.png
    449.2 KB · Views: 165

Mark Read

Well-Known Member
Licensed User
Longtime User
I tried that Erel, I loaded an empty page with Webview.Loadhtml (as I said in point 2 above) but it didn't work. The page I am loading (as in the screenshot) is created using javascript. I am wondering if the new page uses information from the cache? If so, how can I clear the cache?
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
This is an example of the file which is created by my app and displayed in the webview.
 

Attachments

  • googlemap.txt
    2.2 KB · Views: 1,505
Upvote 0
Top