SetProperty

Modified on Friday, 30 September 2011 11:17 AM by 156.75.200.132 — Categorized as: Uncategorized

The setProperty method allows applications to save values in Silverlight isolated storage using the framework's support for client-side caching. It can also be used to modify framework settings. For more information about commands, see Commands.


Parameters

NameTypeRequiredDescription
keyStringYesThe name of the property to set.
valueStringYesThe parameter value to save.

Examples

Save a Simple Property


FDOT.Map.setProperty("MyProperty", "MyValue");

Save a Javascript Object


FDOT.Map.setProperty("MyObject", JSON.stringify(myObject));

Set a Framework Property


FDOT.Map.setProperty("DoPersistCache", "true");

The following framework parameters can be set:

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