You can set the Silverlight Control Init Params in code from your aspx page. These parameters are:

Parameter name Description
MapServiceUrl The URL path to the SLMapViewerController (and xml.aspx file) e.g. http:/localhost/slmc.
Width Control/Map width
Height Control/Map height
InternalControls NOT USED in the latest versions. Left for backward compatibility only. Controlled whether the legend will appear inside or next to the map window. A value of 1 would make the legend appear inside the map
DebugOn Takes the values of 0 (no) and 1 (yes) and controls whether the debug window will appear inside the map control
Culture The current UI culture
TargetControlID Textbox to be used to receive responses from the silverlight control. This control must exist in the container aspx page See also: Passing values to and from aspx pages
RequestControlID Textbox to be used to send map request to the silverlight control. This control must exist in the container aspx page See also: Passing values to and from aspx pages
SessionID NOT USED (But you still have to define it as an empty string!)
Mode NORMAL or KIOSK - Determines toolbar layout

Last edited Jan 3, 2012 at 10:30 AM by gaiocorp, version 7

Comments

No comments yet.