Community of VE/MapPoint Users and Developers
This is a discussion on What is it: ZoomIn, ZoomOut, ZoomTo or Altitude?? within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; laguage: VC++ Hi MP-guru's I'm having problem with zoom-function. First I use zoom by giving Altitude an value when creating ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| What is it: ZoomIn, ZoomOut, ZoomTo or Altitude?? Hi MP-guru's I'm having problem with zoom-function. First I use zoom by giving Altitude an value when creating a location. But suppose I want to see all the pushpins of a few datasetS on the map, than I have to use ZoomTo function of datasetS object. But what value do I have to give the Altitude. Because if I do nothing, the zoom goes back to the zoom of Altitude... It's a bit confusing to me, so I hope someone can help me. Thank you. |
| |||
| Re: What is it: ZoomIn, ZoomOut, ZoomTo or Altitude??
The situation is, if I do the ZoomTo function, than normally it shows all the pushpins. But when I get a new Location, the zoom will change accoording to the Altitude that is put in the GetLocation(latitude,longitude, ALTITUDE). And I found out that leaving Altitude to zero '0', the map shows the globe (I don't know why, but that is how MP-api works). So what is overruling what, and how to solve the problem so, that I can zoom using a slidebar and ZoomTo using a button. But when I use the ZoomTo, the new location doesn't change the zoom, but stays as the ZoomTo. I hope I clarified a little bit of the situation here. |
| |||
| Re: What is it: ZoomIn, ZoomOut, ZoomTo or Altitude??
Hi, I'm not sure if I understeand the question but: GetLocation(lat, lon, alt) just returns a Location object. It does not move or zoom the map. Location.Goto() Moves the map so that the location object is in center of the map. It does not zoom the map. MP.ActiveMap.Altitude = 1; This zooms to 1 km (or 1 mile). Set Altitude to zoom in or out, and read altitude to see the value. DataSet.ZoomTo() moves and zooms the map for a best view on all the pushpins in the dataset. ZoomIn() and ZoomOut() zooms some value in / out. You can use it if user has a button or so to zoom. To zoom exact the value you want then you better set the Altitude (see before). Does this answer your question ?
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
| |||
| Re: What is it: ZoomIn, ZoomOut, ZoomTo or Altitude??
Hi Wilfried, You understand the question perfectly well What I did is changing the altitude in the GetLocation(lat, lon, alt). I didn't know about Map.SetAltitude(). I've tried this out and it works very well. I was working on a serverapp with MP embedded in, to add a feature ZoomTo. The programmer doesn't work here anymore, but he programmed MP using a different aproach (I find it more difficult). Anyway, I want a bunch of pushpins to see on the map by using ZoomTo(). But there are, as far as I can see, 2 types of ZoomTo, one for DataSet and one for DataSets! Because I don't know how that dude programmed and where it is (even the FBI won't find it) I used the DataSets.ZoomTo() method. But actually I want to use the DataSet.ZoomTo. How can I get the DataSet of the standard MyPushpin set? Or how can I use the ZoomTo() for the MyPushpin set? |
| |||
| Re: What is it: ZoomIn, ZoomOut, ZoomTo or Altitude??
Hi, Good that it is working As for your last question: Code: object o = "My Pushpins"; MP.ActiveMap.DataSets.get_Item(ref o).ZoomTo();
__________________ rgds, Wilfried Mestdagh www.mestdagh.biz MapPoint coding demo Order MapPoint 2009 with Routing and User Tools Spreadsheet |
![]() |
| Tags |
| altitude, zoomin, zoomout, zoomto |
| ||||
| Posted By | For | Type | Date | |
| Microsoft MapPoint 2006 - MP2K Magazine | This thread | Refback | 01-01-2007 01:04 PM | |
| Interview with Steve Lombardi - MapPoint Articles - MP2K Magazine | This thread | Refback | 12-27-2006 06:38 PM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ZoomIn() gets "stuck" and does not zoom | BobFromBoston | MapPoint 2006/2009 Discussion | 1 | 10-22-2006 12:54 PM |
| ZoomIN() dosen't work on a deamon-application | Mika | MapPoint 2006/2009 Discussion | 7 | 09-29-2006 08:52 AM |
| dataSet.zoomTo() | chpw | MapPoint 2006/2009 Discussion | 4 | 05-17-2006 07:05 AM |
| ZoomTo Cropping | JRussell | MapPoint 2006/2009 Discussion | 2 | 10-27-2003 10:47 AM |
| Another Question much simpler (zoomto stuff) | Dazzer | MapPoint 2006/2009 Discussion | 1 | 09-24-2003 05:18 PM |
Gatwick Flights
Find out key information about Gatwick airport on Holiday Hypermarket. We can help book great value flights to and from Gatwick as well.
Portugal Weather
Check out Portugal Weather - Travel Counsellors details information on Portugal including, weather, flights and accommodation.
Cheap Flight Canada
Making a cheap flight to Canada can become a reality when you book online with dealchecker.co.uk. Our simple search allows you to see for yourself who is the cheapest.
Holidays to Sri Lanka
Holidays to Sri Lanka are enriched by the glittering tapestry of culture and breath taking mountain views. Book a holiday there today!
Egypt
In Egypt you find an ancient city buzzing with life. There is an abundance of historical sites to see, not just the pyramids. The Opera House is certainly worth a visit and you can enjoy some open-air theatre too.
Holidays Package
Make use of our service at Travel.co.uk to compare holidays. We can find you a package deal that will delight you.
Cheap Holidays in Portugal
Don't spend your hard earned money on travelling agents! Come to On The Beach, and see information on cheap holidays in Portugal.