Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
dosborne
Contributor III
Contributor III

How use a container to hide geoanalytics layers

I am using a geoanalytics map with drill down layers. Is there a way to reuse the same screen real estate (like a tabbed container) to only show the legend that goes with the layer that is currently active ?

Thanks

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi , 

currently if you don't have large amount of entities or complex tooltip
i would recommend to use the Qlik sense built in map , 
there you can hide non active layers , also allow selections from layers legend 

and support to printing the map 

but to your specific question ,
assuming you have to layers for country and city 
1.create both layers then make both of them master visualizations 

2. place a container and add both of the layers created in previous step 

3. for the country layer in the container show condition write this : =if(GetPossibleCount(Country)=1,0,1)

4. for the city layer write this : =if(GetPossibleCount(Country)=1,1,0)

5. in the container appearance properties set tabs off

 

View solution in original post

4 Replies
lironbaram
Partner - Master III
Partner - Master III

hi , 

currently if you don't have large amount of entities or complex tooltip
i would recommend to use the Qlik sense built in map , 
there you can hide non active layers , also allow selections from layers legend 

and support to printing the map 

but to your specific question ,
assuming you have to layers for country and city 
1.create both layers then make both of them master visualizations 

2. place a container and add both of the layers created in previous step 

3. for the country layer in the container show condition write this : =if(GetPossibleCount(Country)=1,0,1)

4. for the city layer write this : =if(GetPossibleCount(Country)=1,1,0)

5. in the container appearance properties set tabs off

 

dosborne
Contributor III
Contributor III
Author

Thanks for the reply ! 

As far as I can tell (through experimentation and research https://community.qlik.com/t5/GeoAnalytics/Add-geoanalytics-map-to-a-tab-container/td-p/1649800) QGA objects cant be put in container objects. You cant specify which Map ID to use with a layer object.

Patric_Nordstrom
Employee
Employee

As @lironbaram  says, use the native map chart in Sense going forward, works with container.

For QV, instead of container, use show conditions directly on the map view instead.

Thanks,

Patric

dosborne
Contributor III
Contributor III
Author

Thanks @Patric_Nordstrom and @lironbaram . Would like to see this possible in QGA.