AnsweredAssumed Answered

How to reload existing map and view?

Question asked by chrisgsr on Jun 12, 2020

Hi im currently using the API and react to build a site which houses a map as its primary page.  The map loads fine with all of its layers, however i currently have logic that allows me to "hide" the map div for other elements to show.  I want to be able to reselect my map from the navigation bar I have setup and reload my old map.  

 

At the moment the map does not display when i try to reshow the div containing the map. 

 

return ( 

<div>

   ...

   { this.state.showMap === true && ref={this.mapViewReference }

   ...

</div>

The data for the old map still exists with all of its layers etc i just want to be able to reload the map.

Outcomes