Commands are created to allow the interaction with the silverlight application through JavaScript. This is particularly important in the case of using the framework in embedded mode. An example of a typical command would be a zoomToGeometry Commands that would allow you to zoom to a particular geometry through javascript. Commands can also be called from components to increase the reuse of code for developers.
Developing New Commands¶
See Main Article
Developing New CommandsDevelopers can created new commands by implementing the interface IScriptableCommand. A base implementation ScriptableCommand is also provided to simplify development of new commands.
Existing Commands¶
See Main Article
Existing CommandsThe framework ships with a large set of commands that will satisfy most use-cases for basic applications. Included commands allow users to query, zoom, and draw against the map.
See Also