Community of VE/MapPoint Users and Developers
This is a discussion on can you explain MappointCtl within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am new to MapPoint I am using 2002 tring to write code in VB6 using control 9.0 Am missing ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| can you explain MappointCtl tring to write code in VB6 using control 9.0 Am missing somthing in the understanding of how the controls link together Problem : I place a pushpin by postal code and it gives my a rough location I move the pushpin manualy on the map to axact location Now I want to find the coordinates I have : http://www.mp2kmag.com/a13--kohl.ext....mappoint.html (this forum is a great wealth of information and I thank all ) My problem is uderstanding the relation ship between Pushpin.location and mappoint.location and mappointctl.getlocation etc.... The method for moving items from one datastructure to another |
| ||||
|
Consider this example. You define 'objloc' as a mappoint location object. You now use the Getlocation method to 'set' a location to objloc. Now that objloc represents a location in mappoint we will add a pushpin to the map and use 'objloc' to tell it what location to put the pushpin. To extract the lat/lon here is a link to an article here at MP2KMag A More Compact Method for Obtaining Lat/Long http://www.mp2kmag.com/articles.asp?ArticleID=13 Code: Dim objmap As MapPoint.Map Set objmap = MappointControl1.ActiveMap Dim objLoc As MapPointctl.Location 'Get the location of Los Angeles, CA, using latitude and longitude Set objLoc = objmap.GetLocation(34.055, -118.24, 100) objmap.AddPushpin objLoc, "MyPushpin"
__________________ John http://www.support-pc.com Order MapPoint 2006 Here https://secure.mp2kmag.com/?refer=support-PC |
![]() |
| Tags |
| explain, mappointctl |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Could someone explain how item() works on shapes collection? | spideybud | MapPoint 2006/2009 Discussion | 0 | 12-15-2003 03:02 PM |
| Help file says MapPointCtl, it doesn't exist | JPeters | MapPoint 2006/2009 Discussion | 2 | 08-02-2002 03:16 PM |