Hi Friends,
Is it possible to set the latitude and longitude directly to a location
object.
regards
kaushik
This is a discussion on Setting latitude& longitude in mappoint 2006 within the Bing Maps and MapPoint Web Service forums, part of the Map Forums category; Hi Friends, Is it possible to set the latitude and longitude directly to a location object. regards kaushik...
Hi Friends,
Is it possible to set the latitude and longitude directly to a location
object.
regards
kaushik
Is this what you are looking for?
Dim StartLocation As New Location
Dim StartGeoCode As New LatLong
StartGeoCode.Latitude = Request.QueryString("LAT")
StartGeoCode.Longitude = Request.QueryString("LON")
StartLocation.LatLong = StartGeoCode
Hi,
I refering to the windows mappoint 2006 application.
regards
kaushik
Since the post is in this forum I thought you were asking about MapPoint Web Service. Anyway try this for ActiveX
Public Sub ShowLocation(ByVal dblLatitude As Double, ByVal dblLongitude As Double)
On Error GoTo Er
Dim objLoc As MapPointCtl.Location
Dim oPushPin As MapPointCtl.Pushpin
Set objLoc = ctlMap.ActiveMap.GetLocation(dblLatitude, dblLongitude)
Set oPushPin = ctlMap.ActiveMap.AddPushPin(objLoc, DispatchLocation.SiteName)
oPushPin.Symbol = cDISPATCHLOCATIONICON
ctlMap.ActiveMap.DataSets.ZoomTo
ctlMap.ActiveMap.Altitude = 60
CleanExit:
Set objLoc = Nothing
Set oPushPin = Nothing
Exit Sub
Er:
'***Handle Error here
Resume CleanExit
End Sub
Oops! Forgot this declaration
Const cDISPATCHLOCATIONICON = 140
There are currently 1 users browsing this thread. (0 members and 1 guests)