MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




What is it: ZoomIn, ZoomOut, ZoomTo or Altitude??

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 ...


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 (2) Thread Tools Display Modes
  2 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 12-21-2006
Member
Green Belt
 
Join Date: Nov 2006
Posts: 84
What is it: ZoomIn, ZoomOut, ZoomTo or Altitude??

laguage: VC++

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.
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 12-21-2006
Member
Green Belt
 
Join Date: Nov 2006
Posts: 84
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.
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 12-21-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
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 ?
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 12-22-2006
Member
Green Belt
 
Join Date: Nov 2006
Posts: 84
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?
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 12-22-2006
Member
Green Belt
 
Join Date: Nov 2006
Posts: 84
Re: What is it: ZoomIn, ZoomOut, ZoomTo or Altitude??

Hi Wilfried,

I solved all the problem now, it is exactly like you said. So thnx for your reply anyway! The problem was on the webclient app that did my collague!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 12-22-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,105
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();
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
altitude, zoomin, zoomout, zoomto


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/what-zoomin-zoomout-zoomto-altitude-5512.html

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

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
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


All times are GMT -5. The time now is 01:08 AM.


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

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.


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