MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Zoom IN to show all pushpins in one screen

This is a discussion on Zoom IN to show all pushpins in one screen within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have dataset has multiple pushpins. when activemap gets new dataset How can I get activemap to zoom in or ...


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 07-30-2005
Junior Member
Yellow Belt
 
Join Date: May 2004
Posts: 23
Zoom IN to show all pushpins in one screen

I have dataset has multiple pushpins.

when activemap gets new dataset
How can I get activemap to zoom in or out show all pushpins?

Thanks
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-31-2005
calv1ns's Avatar
Member
Green Belt
 
Join Date: Mar 2005
Posts: 91
ZoomTo Method

Hey Xrok

Use the ZoomTo method on the DataSets Collection or a Dataset Object

Example
Sub ZoomToPushpinSet()

Dim objApp As New MapPoint.Application
Dim objMap As MapPoint.Map
Dim objPin As MapPoint.Pushpin

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

'Add a Pushpin to the map
objMap.AddPushpin objMap.FindResults("San Jose, CA")(1)

'Zoom to all the Pushpin sets
objMap.DataSets.ZoomTo
' or Zoom to the new Pushpin Set
objMap.DataSets.item("My Pushpins").ZoomTo
End Sub

Note: "My Pushpins" can be an integer index. I think the most recently created dataset is index 1 but best to refer by them by name to be sure.

Ciao,
__________________
Calv1ns
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 07-31-2005
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,122
Hi,

Quote:
My Pushpins" can be an integer index. I think the most recently created dataset is index 1 but best to refer by them by name to be sure
I think 'my pushpins' is always index 1. However you are rith to refer by name in case of forward compatibility.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 08-04-2005
Junior Member
Yellow Belt
 
Join Date: May 2004
Posts: 23
Thanks

That help me get to do what I want a accomplished.

Thanks
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
pushpins, screen, show, 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
Routes from Pushpins and do not show Waypoints alister55 MapPoint 2006/2009 Discussion 1 01-03-2006 04:08 PM
Does anyone know is the the zoom level required to show alwasl8 MapPoint 2006/2009 Discussion 2 09-28-2005 09:08 AM
Show pushpins in front of lines Anonymous MapPoint 2006/2009 Discussion 1 05-28-2004 09:52 AM
virtual screen to show detail? creativegirl MapPoint 2006/2009 Discussion 0 01-26-2003 06:06 PM
Pushpins won't show up Anonymous MapPoint 2006/2009 Discussion 6 01-02-2003 05:21 PM


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