Customizing the URL calling the map

438
1
12-19-2011 11:25 AM
ReidFreelan
New Contributor
Hey All,

We've got a fairly simple campus map (using Flex Viewer) and we'd like to be able to 'call' different versions of the map via tweaks to the URL. For example, we'd like to to be able to have different departments, etc. post a link to the map with their particular building selected or highlighted. Or a map showing all of the parking lots that have metered parking, etc.

Is there a way to pass a parameter in the URL that could be used for a selection/definition query? Or a way to pass a parameter that would then allow us to use if/then statements in the config file to turn custom layers on based on the parameter?

Obviously, we could make dozens of different config files with slight variations, but that seems like it should be unnecessary...

thanks,
~stefan
Tags (2)
0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus
Stefan,

   Sure, start looking in the viewers code and you will see the you can get whatever param you put in the url from ViewerContainer.urlConfigParams.yourParam. Just start searching the ConfigManager.as for examples of code.
0 Kudos