Community of VE/MapPoint Users and Developers
This is a discussion on Retrieve Lat/Lon of a ShaddedCircle within the MapPoint 2006/2009 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 ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Retrieve Lat/Lon of a ShaddedCircle 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, |
| ||||
|
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 Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009 |
| |||
|
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
|
![]() |
| Tags |
| lat or lon, retrieve, shaddedcircle |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Nobody knows the answer? How to retrieve the name of country | Abilio Serafim | MapPoint 2006/2009 Discussion | 1 | 04-29-2005 11:09 AM |
| Retrieve the clicked country name | Abilio Serafim | MapPoint 2006/2009 Discussion | 0 | 04-27-2005 07:10 AM |
| Retrieve postcodes list | Dazzer | MapPoint 2006/2009 Discussion | 4 | 02-02-2004 04:42 AM |
| Is it possible to retrieve county names from the z.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 12-18-2001 12:59 PM |
| How can I retrieve the information of a drawing pr.... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 05-26-2000 01:34 PM |