Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
JoaquinLazaro
Partner - Specialist II
Partner - Specialist II

SVG Maps

Hi:

I've created an app that shows a world map with the related data.

Is it possible to switch to national maps (by province) when selected over a country?

Thank you

1 Solution

Accepted Solutions
JoaquinLazaro
Partner - Specialist II
Partner - Specialist II
Author

Thanks Steve

I've showed the national map using this

= IF (GetSelectedCount(Country)=1, only(CountryMapFile), 'world.svg')

View solution in original post

2 Replies
Anonymous
Not applicable

Hi Joaquin,

You can specify this kind of expression in the Load SVG path

=if(count(DISTINCT CountryCode)>1, 'World.svg', only(FileName))

with the FileNames referencing the necessary SVG file.

JoaquinLazaro
Partner - Specialist II
Partner - Specialist II
Author

Thanks Steve

I've showed the national map using this

= IF (GetSelectedCount(Country)=1, only(CountryMapFile), 'world.svg')