HighTechTalks DotNet Forums  

error with mappoint

Dotnet VSA microsoft.public.dotnet.vsa


Discuss error with mappoint in the Dotnet VSA forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
marta
 
Posts: n/a

Default error with mappoint - 03-13-2006 , 01:31 PM






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
End Sub

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.