Click or drag to resize

MapCtrlDisplayScale Property

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Gets or sets the scale of map overlay objects (such as labels, shields, direction arrows, and highlights) relative to the underlying map tiles.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public int DisplayScale { get; set; }

Return Value

Type: Int32
An integer value representing the display scale of map overlay objects.

Implements

IMapDisplayScale
Remarks

Scaling of map elements may be required on devices with high-DPI displays. A minimum integer value of 1 is required, and is equivalent to no scaling.

Examples
In this example, we double the size of all elements above the base map layer.
C#
// Set the map center
mapCtrl.Center = new LatLon(34.45, -117.25);
// Double the size of map labels etc.
mapCtrl.DisplayScale = 2;
// Get the map scale and display as a message box
MessageBox.Show("Display scale is " + mapCtrl.DisplayScale.ToString());
See Also