MapWinGIS:AxMap SetLayerStandardViewWidth

This is a back-up of the WIKI.
Not all links might work
We're working on a new wiki.

Main Page | Recent changes | View source | Page history | Log in / create account |

Printable version | Disclaimers | Privacy policy

SetLayerStandardViewWidth

Sets the standard view width used to scale the labels on the layer.
See also GetLayerStandardViewWidth and LayerLabelsScale


VB.NET Usage

Property SetLayerStandardViewWidth(layerHandle As Integer, width As Double)

            Parameters

layerHandle

The handle of the layer for which the standard view width is to be set.
width The new standard view width for the specified layer.

Sample Code

    Public Sub SetStandardViewWidth()
        Dim extents As MapWinGIS.Extents
        Dim width As Double
        'Get the current extents of the map
        extents = Map1.Extents
        'Calculate the width of the current map extents
        width = extents.xMax - extents.xMin
        'Set the standard view width for layer 0 to be the width of the current extents
        Map1.SetLayerStandardViewWidth(0, width)
    End Sub
  

VB 6 Usage

Property SetLayerStandardViewWidth(layerHandle As Long, width As Double)
            Parameters

layerHandle

The handle of the layer for which the standard view width is to be set.
width The new standard view width for the specified layer.

Sample Code

    Public Sub SetStandardViewWidth()
        Dim extents As MapWinGIS.extents
        Dim width As Double
        'Get the current extents of the map
        Set extents = Map1.extents
        'Calculate the width of the current map extents
        width = extents.xMax - extents.xMin
        'Set the standard view width for layer 0 to be the width of the current extents
        Map1.SetLayerStandardViewWidth 0, width
    End Sub

Retrieved from "http://mapwindow.org/wiki/index.php/MapWinGIS:AxMap_SetLayerStandardViewWidth"

This page has been accessed 1,479 times. This page was last modified on 9 November 2005, at 18:53.