Groups | Blog | Home
all groups > dotnet vsa > march 2006 >

dotnet vsa : error with mappoint


marta
3/13/2006 10:31:26 AM
Hello i have a form whith code (down) but dont show me the map, I reference
mappoint y AxMappoint.
¿what is the problem?
thanks

Private Sub localizador_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
With Me.AxMappointControl1
Dim objLoc As MapPoint.Location
Dim objMap As MapPoint.Map
'Open a North American map
..NewMap(MapPoint.GeoMapRegion.geoMapEurope)
'Set the map object to the current map

objMap = AxMappointControl1.ActiveMap
objMap.MapStyle = MapPoint.GeoMapStyle.geoMapStyleTerrain
'Set the font to the smallest size
objMap.MapFont = MapPoint.GeoMapFont.geoMapFontSmallest
'Add a symbol that will be used to show a vehicle location
objMap.Symbols.Add("C:\SistemaInformación\Iconos\camion.ico")
'336
objMap.Altitude = 6
'set map starting point
objLoc = objMap.GetLocation(41.65117, 0.93398)
objLoc.GoTo()
End With
AddThis Social Bookmark Button