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 3 of 3

Retrieve Lat/Lon of a ShaddedCircle

This is a discussion on Retrieve Lat/Lon of a ShaddedCircle within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I am working on an application under VB.net using the MapPoint API. I have a question: is it possible ...

  1. #1
    rorgmanche is offline Junior Member White Belt
    Join Date
    Aug 2005
    Posts
    8

    Retrieve Lat/Lon of a ShaddedCircle

    Hi,

    I am working on an application under VB.net using the MapPoint API. I have a question: is it possible to retrieve the coordinate of a selected ShaddedCircle ? I have programmaticaly imported data from ".txt" file and have put them on a map with ShaddedCircles. When i select any ShaddedCircle, the lat/lon of is not correct and is always the same. However, when i select another point on the map, like a city for example, the coordinates are correct.
    Have someone already succeeded in retrieving Lat/lon of ShaddedCircle ?


    Best regards,

  2. #2
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60
    Kludgy get-around:

    Create an invisible pushpin. Then re-import your data but as a pushpin set instead of a shaded circle. Then get the location of the invisible pushpin?

    I'm not sure how you'd select the invisible pushpin: can you get a name from the shaded circle? (and then use this name to find the corresponding invisible pushpin)



    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

  3. #3
    rorgmanche is offline Junior Member White Belt
    Join Date
    Aug 2005
    Posts
    8
    Hi,

    I already have test my following routine with pushpin but the result is the same. I never obtain the lat/lon of the symbols put on the map by import, but, with this routine i obtain each time the lat/lon of any point on the map

    Code:
    Private Sub AxMappointControl1_SelectionChange(ByVal sender As Object, ByVal e As AxMapPoint._IMappointCtrlEvents_SelectionChangeEvent) Handles AxMappointControl1.SelectionChange
            Dim oPushPin As MapPoint.Pushpin
            Dim Loc, Loc2 As MapPoint.Location
            Dim lat, lon, Altitude As Double
            Dim Type As MapPoint.GeoDataMapType
    
            Loc = oMap.Selection
            CalcPos(oMap, Loc, lat, lon)
            Loc2 = oMap.GetLocation(lat, lon, Altitude)
            oPushPin = oMap.AddPushpin(Loc2, "Point route")
            oPushPin.Symbol = 82
    
        End Sub
    Something mysterious....

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Nobody knows the answer? How to retrieve the name of country
    By Abilio Serafim in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 04-29-2005, 11:09 AM
  2. Retrieve the clicked country name
    By Abilio Serafim in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 04-27-2005, 07:10 AM
  3. Retrieve postcodes list
    By Dazzer in forum MapPoint Desktop Discussion
    Replies: 4
    Last Post: 02-02-2004, 04:42 AM
  4. Is it possible to retrieve county names from the z....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-18-2001, 12:59 PM
  5. How can I retrieve the information of a drawing pr....
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 05-26-2000, 01:34 PM

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