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
| Name | Type | Required | Description |
|---|
| key | String | Yes | The 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:
| 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