MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Problem: Pushpin -> Polyline

This is a discussion on Problem: Pushpin -> Polyline within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hello Everyone, i'm programming in VB6 and MP2002. I have a recordset with Pushpins. And now I want to make ...


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

Today's Posts Twitter Feed 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 02-25-2004
Junior Member
White Belt
 
Join Date: Feb 2004
Posts: 2
Problem: Pushpin -> Polyline

Hello Everyone,

i'm programming in VB6 and MP2002. I have a recordset with Pushpins. And now I want to make a Polyline over these Pins.
I found the "AddPolyline()". But can someone tell me the Code how to do this.

Sorry, my english is bad, I know.

But i need HELP,

Michelin
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 02-26-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 3,041
Blog Entries: 2
There is a sample in the Help File... (below)

objLoc is defined as an array of Locations, you would get the locations of your Pushpins into the array.


Sub AddPolylineToMap()

Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objLoc(1 To 3) As MapPoint.Location

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

'Get three locations and zoom in
Set objLoc(1) = objMap.FindResults("Seattle, WA").Item(1)
Set objLoc(2) = objMap.FindResults("Redmond, WA").Item(1)
Set objLoc(3) = objMap.FindResults("Tacoma, WA").Item(1)
Set objMap.Location = objLoc(1)

'Create a polyline by connecting these locations
objMap.Shapes.AddPolyline objLoc

End Sub
__________________
~ Now taking orders for MapPoint 2009 ~
~~
~ Upgrade to MapForums Plus membership ~
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
>, polyline, problem, pushpin


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
MAPPOINT - Problem : Pushpin is NOT displayed Transit MapPoint 2006/2009 Discussion 8 01-15-2008 01:07 PM
Drawing a polyline with Visual Basic Net - Array problem Anonymous MapPoint 2006/2009 Discussion 0 03-24-2005 04:16 PM
Polyline Size Anonymous MapPoint 2006/2009 Discussion 4 09-29-2004 06:08 AM
Showing a pushpin on top of a shape (polyline) Anonymous MapPoint 2006/2009 Discussion 2 02-19-2004 04:24 AM
Bug on Polyline and line Maverick MapPoint 2006/2009 Discussion 0 02-28-2003 06:10 AM


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


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Antalya Holiday
Check out the Antalya holiday options through UlookUbook and find amazing offers that suit your pocket...



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 55 56 57 58 59