Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 5 of 5

Setting latitude& longitude in mappoint 2006

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...

  1. #1
    hegdek is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    8

    Setting latitude& longitude in mappoint 2006

    Hi Friends,
    Is it possible to set the latitude and longitude directly to a location
    object.
    regards
    kaushik

  2. #2
    shaistasohail is offline Junior Member Yellow Belt
    Join Date
    Sep 2002
    Posts
    20

    Question Re: Setting latitude& longitude in mappoint 2006

    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

  3. #3
    hegdek is offline Junior Member White Belt
    Join Date
    Nov 2006
    Posts
    8

    Re: Setting latitude& longitude in mappoint 2006

    Hi,
    I refering to the windows mappoint 2006 application.
    regards
    kaushik

  4. #4
    shaistasohail is offline Junior Member Yellow Belt
    Join Date
    Sep 2002
    Posts
    20

    Post Re: Setting latitude& longitude in mappoint 2006

    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

  5. #5
    shaistasohail is offline Junior Member Yellow Belt
    Join Date
    Sep 2002
    Posts
    20

    Post Re: Setting latitude& longitude in mappoint 2006

    Oops! Forgot this declaration


    Const cDISPATCHLOCATIONICON = 140

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Mappoint, postcode to longitude and latitude
    By jimbob in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 01-16-2005, 09:08 AM
  2. GPS Longitude and Latitude does not agree with MapPoint
    By westbrooks in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 02-29-2004, 06:20 PM
  3. Can Mappoint 3.0 SDK return Latitude Longitude coordinates?
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 01-27-2004, 06:56 PM
  4. Latitude and Longitude
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 11-25-2003, 01:52 PM
  5. NMEA latitude/longitude and mappoint latitude/longitude
    By muurman in forum MapPoint Desktop Discussion
    Replies: 3
    Last Post: 11-22-2003, 05:42 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96