Hi,
Going with the second option, I am using render theme4. My problem is how can I enable/disable an overlay on-the-fly e.g. by any event (say tap on screen). Is there any way to re-draw the overlays of a layer (after I have selectively enabled/disabled them on the fly)?
I want to dynamically enable or disable any of the overlays that i have defined in rendertheme-v4.xml.
I tried a couple of options but none of them seem to work:
- this.redrawLayers(); (calls method from MapViewerTemplate.java)
- Following code is not efficient (long flicker)
for (TileCache tileCache : tileCaches) {
tileCache.purge();
}
AndroidUtil.restartActivity(this);