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
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
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:
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