Welcome Guest, you are in: Login

FDOT Wiki

RSS RSS

GisFramework



Search the wiki
»

GetProperty

RSS
Modified on Friday, 30 September 2011 11:49 AM by 156.75.200.132 Categorized as Uncategorized
The getProperty method allows applications to get values from Silverlight isolated storage using the framework's support for client-side caching. It can also be used to get framework settings. For more information about commands, see Commands.


Parameters

NameTypeRequiredDescription
keyStringYesThe name of the property to get.

Examples

Get a Simple Property


var myStringProperty = FDOT.Map.getProperty("MyProperty");

Get a Javascript Object


var myObject = JSON.parse(FDOT.Map.getProperty("MyObject));

Get a Framework Property


var doPersistCache = FDOT.Map.getProperty("DoPersistCache").toLowerCase() === 'true';

The following framework parameters can be returned:

NameTypeDescription
DoPersistBaseMapString ('true'/'false')Restores the active basemap selection the next time the map is viewed.
DoPersistVisibleLayersString ('true'/'false')Restores the active layers the next time the map is viewed.
DoPersistExtentString ('true'/'false')Restores the active extent the next time the map is viewed.
DoPersistCacheString ('true'/'false')Enables/disables client-side query caching.
LimitQueriesToActiveLayersString ('true'/'false')Limits query results to the active layers only.



See Also

Any Questions or Comments? Email
Some of the icons created by FamFamFam.