MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




can you explain MappointCtl

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


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-02-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
can you explain MappointCtl

I am new to MapPoint I am using 2002
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 05-06-2004
John Meyer's Avatar
Senior Member
Blue Belt
 
Join Date: Jul 2002
Posts: 479
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
explain, mappointctl


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 03:12 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


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