How to use new MapTypeControlOptions

Dec 7, 2010 at 4:57 PM

I am switching from 4.1 to the new 5.0 control and am seeking documentation on how to use the new MapTypeControlOptions property. I can not find any examples in the sample web site. I have discovered that the old ZoomPanType property no longer appears to work in 5.0 and I suspect the the new MapTypeControlOptions is the key. Any help would be appreciated.

Dec 7, 2010 at 8:19 PM

I figured out how to use all the options save one. In VB example code-behind is:

        Dim myMapType As New MapTypeControlOptions
        myMapType.ViewStyle = MapTypeControlStyle.DropdownMenu
        myMapType.Position = ControlPosition.TopRight
        GoogleMap1.MapTypeControlOptions = myMapType

        Dim myNavOpt As New NavigationControlOptions
        myNavOpt.ViewStyle = NavigationControlStyle.Small
        myNavOpt.Position = ControlPosition.TopLeft
        GoogleMap1.NavigationControlOptions = myNavOpt

I still cannot figure out how to use the MapTypes() option of the MapTypeControlOptions property.