Click or drag to resize

MapStyleSetParameter Method (String, Boolean)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Set a parameter to a boolean value.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public void SetParameter(
	string name,
	bool val
)

Parameters

name
Type: SystemString
The name of the parameter to set.
val
Type: SystemBoolean
The value the parameter will be set to.
Remarks

In the Chameleon language, boolean false equates to a value of zero. Any other value is considered to be true. If the given parameter does not exist, no action will be taken.

Some map styles do not display road information at high zoom levels (that is, when viewing from a high altitude). However, road visibility may in some cases be desirable at these levels. The parameter 'detailed' is available to force the display of road details at these high zoom levels if needed.

Examples
C#
public MyForm() {
    InitializeComponent();
       MapStyle myStyle = MapStyle.Create("c:\\MyCamFile.cam");
       mapCtrl.Style = myStyle;

       //"tileserver" is used to draw roads at high level zooms
       mapCtrl1.Style.SetParameter("detailed", true);
}
See Also