WebMapViewer.TypeChanged

From Xojo Documentation

Event


WebMapViewer.TypeChanged(Type As Integer)

New in 2011r2

Supported for all project types and targets.

Called when the Type of the map is changed, either by the user or code.


Notes

See the Type constants below for possible values.

Class Constant
TypeRoadmap As Integer = 0
TypeSatellite As Integer = 1
TypeHybrid As Integer = 2
TypeTerrain As Integer = 3


Notes

You can change the map type by interacting with the map or by changing the value of the MapType property.


Example

Displays the map type in a Label when it is changed:

Var map As String
Select Case Type
Case 0
map = "Road"
Case 1
map = "Satellite"
Case 2
map = "Hybrid"
Case 3
map = "Terrain"
End Select

MapTypeLabel.Text = "Map Type: " + map