MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Drawing / Zoom

This is a discussion on Drawing / Zoom within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi, I have to draw Arrows between two points and then I want both points to be in the zoom ...


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 04-04-2005
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Drawing / Zoom

Hi,
I have to draw Arrows between two points and then I want both points to be in the zoom and not only one.

Code:
Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objLoc1 As MapPoint.Location
Dim objLoc2 As MapPoint.Location
Dim Arrow As MapPoint.Shape
Dim begin As String
Dim finish As String

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

'Get two locations and zoom to it
begin = TextBox1.Value
finish = TextBox2.Value
Set objLoc1 = objMap.FindResults(begin).Item(1)
Set objLoc2 = objMap.FindResults(finish).Item(1)
Set objMap.Location = objLoc1 'Zoom to begin
  
'Add an Arrow from one location to the other
Set Arrow = objMap.Shapes.AddLine(objLoc1, objLoc2)
Arrow.Line.EndArrowhead = True
Arrow.Line.Weight = 1
Arrow.SizeVisible = True
  
objApp.Visible = True
Thanks for your help
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 04-04-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,112
Hi,

I think this should do it:

Code:
MP.ActiveMap.DataSets.ZoomTo();
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
drawing, zoom


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-ZOOM Anonymous MapPoint 2006/2009 Discussion 1 10-28-2004 08:56 AM
Zoom to Waypoint BobIDEAS MapPoint 2006/2009 Discussion 3 09-08-2004 02:41 PM
Zoom to selection? sthurlock MapPoint 2006/2009 Discussion 6 12-10-2003 07:53 PM
zoom in on pushpin starbuck MapPoint 2006/2009 Discussion 5 10-24-2003 12:26 PM
Zoom In and Zoom Out event detection victorf MapPoint 2006/2009 Discussion 2 10-22-2003 01:56 AM


All times are GMT -5. The time now is 04:41 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