MapPoint Forums

MapForums

Community of MapPoint and Bing Maps Users and Developers




center the map to a location or pushpin withzoom

This is a discussion on center the map to a location or pushpin withzoom within the Development forums, part of the MapPoint Desktop Discussion category; Does anybody know a workaround to center the map to a location or a pushpin without zooming (goto) or change ...


Go Back   MapPoint Forums > Map Forums > MapPoint Desktop Discussion > Development

Today's Posts Twitter Feed Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-16-2010
Junior Member
Yellow Belt
 
Join Date: Mar 2007
Posts: 27
center the map to a location or pushpin withzoom

Does anybody know a workaround to center the map to a location or a pushpin without zooming (goto) or change the map's current scale? Originally we thought this would be an easy task, and then found out that MapPoint does not provide any API on this or zoom to given map scale. Any tip will be appreciated.
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 03-16-2010
Junior Member
Yellow Belt
 
Join Date: Mar 2007
Posts: 27
Unhappy Re: center the map to a location or pushpin withzoom

I'm thinking to use Pan method but the it only pans by pandirection and panfactor, not to a location.
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 03-16-2010
Junior Member
Yellow Belt
 
Join Date: Mar 2007
Posts: 27
Re: center the map to a location or pushpin withzoom

The topic should be "center the map to a location or pushpin without zooming"
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 03-16-2010
Mattys Consulting's Avatar
Senior Member
Red Belt
 
Join Date: Dec 2002
Posts: 670
Re: center the map to a location or pushpin withzoom

I think you just need to declare an altitude variable to hold information about
your present position, use GoTo, then supply the previous altitude to the map.

Mike Mattys
Business Process Developers
Mattys Consulting Maps & Custom Programming
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 03-17-2010
Junior Member
Yellow Belt
 
Join Date: Mar 2007
Posts: 27
Re: center the map to a location or pushpin withzoom

Thank you for the tip, Mike. This is exactly what I'm looking for. The following is my C# code:

double alt = objMap.Altitude;
objPin.Location.Goto();
objMap.Altitude = alt;

It does center the pushpin and keep the map scale unchanged.

You rock, Mike.
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
center, location, map, pushpin, withzoom


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
Pushpin or Location chpw Development 1 12-04-2008 07:39 AM
FInd center location of ZipCode area using MP ActiveX (MP 2006) Ekas MapPoint Desktop Discussion 2 01-26-2007 09:46 AM
Getting the pushpin from a location BobFromBoston MapPoint Desktop Discussion 1 08-21-2006 04:51 AM
Center Map to a pushpin? Anonymous MapPoint Desktop Discussion 7 02-14-2005 04:31 PM
VB6 + ACCESS : Center to a pushpin and other things... Anonymous MapPoint Desktop Discussion 0 09-05-2002 10:40 AM


All times are GMT -5. The time now is 05:01 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.0 RC3
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 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69