[UnfoldingMaps] Toggle Maps visibility

Hallo Everyone,

I was wondering if it's possible to toggle a map on/off with a simple button. I have seen the API docs, but so far the most useful method seems to be map.setActive(), although I'm not really sure how to use it in combination with map.draw().

Also, contrary to the following question, I'd like to toggle the entire map off within the box where I'm drawing it, including the markers and the pan/zoom functionalitites..I'd like to basically toggle it off and substitute it with a plain colored polygon. Then toggle it back on and make it reappear.

Thanks in advance for any input!

Sign In or Register to comment.