Welcome
Guest
, you are in:
<root>
EnterpriseLibrary
FDOT Security STS
FDOT_Application_Model
GisFramework
•
Login
FDOT Wiki
GisFramework
¶
Gis Framework
Fdot Wiki
Random Page
All Pages
Categories
Search the wiki
»
Back
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]. {toc} ==Parameters== {| class="tablesorter" ! Name !! Type !! Required !! Description |- | key || String || Yes || The name of the property to set. |- | value || String || Yes || The parameter value to save. |} ==Examples== ====Save a Simple Property==== (((@@ javascript FDOT.Map.setProperty("MyProperty", "MyValue");@@))) ====Save a Javascript Object==== (((@@ javascript FDOT.Map.setProperty("MyObject", JSON.stringify(myObject));@@))) ====Set a Framework Property==== (((@@ javascript FDOT.Map.setProperty("DoPersistCache", "true");@@))) The following framework parameters can be set: {| class="tablesorter" ! Name !! Type !! Description |- | DoPersistBaseMap || String ('true'/'false') || Restores the active basemap selection the next time the map is viewed. |- | DoPersistVisibleLayers || String ('true'/'false') || Restores the active layers the next time the map is viewed. |- | DoPersistExtent || String ('true'/'false') || Restores the active extent the next time the map is viewed. |- | DoPersistCache || String ('true'/'false') || Enables/disables client-side query caching. |- | LimitQueriesToActiveLayers || String ('true'/'false') || Limits query results to the active layers only. |} ==See Also== {Incoming}
Meta Keywords:
Meta Description:
Change Comment:
Any Questions or Comments? Email
GIS Framework Development Team
Some of the icons created by
FamFamFam
.