Community of VE/MapPoint Users and Developers
This is a discussion on zoom in on pushpin within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Hi All I am using the following code to select a pushpin where mc1 = a ocx on the form. ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
|
Dim oRes As FindResults 'Set objPin = mc1.ActiveMap.FindPushpin(veh_list) ' This will zoom the map to a particular pin ' (but maybe you won't like this yellow circle): Set oRes = mc1.ActiveMap.FindPushpin(veh_list).Location.FindN earby(0.1) ' i hope this helps -> greetings from germany 'forget this: 'mc1.ActiveMap.DataSets.ZoomTo '----------------------------------------------- On Error GoTo er objPin.Select |
| |||
|
'sorry for spamming again! ' the ultimate solution: Dim oLoc As Location Dim oPin As Pushpin Dim dbLat As Double Dim dbLon As Double Set oLoc = mc1.ActiveMap.FindPushpin(veh_list).Location Call CalcPos(mc1.ActiveMap, oLoc, dbLat, dbLon) mc1.ActiveMap.GetLocation(dbLat, dbLon, 0.1).GoTo 'The CalcPos - routine you will find here: (Many thanks to Gilles!!!) 'http://www.mp2kmag.com/articles.asp?ArticleID=13&key=extract.lat.lon |
![]() |
| Tags |
| pushpin, zoom |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drawing / Zoom | Anonymous | MapPoint 2006/2009 Discussion | 1 | 04-04-2005 07:59 AM |
| Mappoint-ZOOM | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-28-2004 08:56 AM |
| Zoom to selection? | sthurlock | MapPoint 2006/2009 Discussion | 6 | 12-10-2003 07:53 PM |
| Zoom In and Zoom Out event detection | victorf | MapPoint 2006/2009 Discussion | 2 | 10-22-2003 01:56 AM |
| Exclude a pushpin From Zoom | piazzat | MapPoint 2006/2009 Discussion | 0 | 09-05-2002 10:12 AM |