Community of MapPoint and Bing Maps Users and Developers
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 ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| center the map to a location or pushpin withzoom 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. |
| ||||
| 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 |
| |||
| 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. ![]() |
![]() |
| Tags |
| center, location, map, pushpin, withzoom |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| 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 |