MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




How does one get the activeX mappoint control to d....

This is a discussion on How does one get the activeX mappoint control to d.... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; How does one get the activeX mappoint control to draw a line between pushpins which represent gps lat/lon points as ...


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

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-25-2001
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
How does one get the activeX mappoint control to draw a line between pushpins which represent gps lat/lon points as a vehicle moves on the map?
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 07-25-2001
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
You would use the AddLine method. This is a code snippet from the
developer's reference in MapPoint Help (it can also be found on MSDN
Library on the web):

<form><textarea wrap="off" readonly="true" name="code" style="BORDER-BOTTOM: gray 1px inset; BORDER-LEFT: gray 1px inset; BORDER-RIGHT: gray 1px inset; BORDER-TOP: gray 1px inset; OVERFLOW: auto; WIDTH: 100%" rows="12" cols="40"> Sub AddLineToMap()

Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objLoc1 As MapPoint.Location
Dim objLoc2 As MapPoint.Location

'Set up the application
Set objMap = objApp.ActiveMap
objApp.Visible = True
objApp.UserControl = True

'Get two locations and zoom to it
Set objLoc1 = objMap.FindResults("Seattle, WA").Item(1)
Set objLoc2 = objMap.FindResults("Redmond, WA").Item(1)
Set objMap.Location = objLoc1

'Add a Line from one location to the other
objMap.Shapes.AddLine objLoc1, objLoc2

End Sub </textarea></form>
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


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
Integratin MapPoint ActiveX control into VC++ 6.0 geouser MapPoint 2006/2009 Discussion 7 06-13-2006 03:11 PM
Re: Keyboard control in mappoint activex control djcapslock MapPoint 2006/2009 Discussion 1 03-10-2005 10:16 AM
mappoint ActiveX control 9.0 Anonymous MapPoint 2006/2009 Discussion 1 10-21-2004 06:22 AM
I am using Mappoint 2002 ActiveX control in a VB a.... Anonymous MapPoint 2006/2009 Discussion 2 06-14-2002 07:10 AM
I am using the MapPoint ActiveX control in a VB Ap.... Anonymous MapPoint 2006/2009 Discussion 1 08-24-2001 06:35 AM


All times are GMT -5. The time now is 12:27 AM.


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

Cheap flights to Corfu
Corfu is a vibrant and spectacular holiday destination. Use Holiday Hypermarket to book cheap accommodation and cheap flights to Corfu.

City Breaks
Top 10 City Breaks . Based on holidays booked this year, these are the most popular City Breaks for 2006

Holiday Jamaica
What springs to mind when you hear the word Jamaica? Bob Marley and Rum? Think again. Book a low cost holiday in Jamaica to explore this island for yourself.

Dubai Holidays
Dubai holidays provide you with exotic sights, desert safaris and superb cuisine. There is an extensive range of things to do and see!

Spain
Spain is such a diverse country that it has something to offer most holidaymakers. Finding delicious cuisine is no challenge and the shopping ranges from designer boutiques to unknown flea markets. Spain has much to offer.

Holiday Comparison
We can help you with holiday comparison when you check out the options at Travel.co.uk

Cheap Holidays in Sharm el Sheikh
Egypt awaits! Visit On The Beach for info on cheap holidays in Sharm el Sheikh.


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