Multiple zooms and pans

Anonymous
03-14-2005, 11:27 AM
Hello,

I recently re-arranged some code in an application that our company has in order to better use some MapPoint features.

Originally I would just pass a pan x and y and it would compile that into what had already been done.

After the code movement, it seems that the pan x and y are reset on each refresh of the map.

Has anyone run into this before?

Thanks

Wilfried
03-14-2005, 01:04 PM
Hi,

Originally I would just pass a pan x and y and it would compile that into what had already been done.

Can you please try to explain what the problem is ?

Anonymous
03-14-2005, 01:19 PM
Ok,

Originally I had some code that accesses the MapPoint WebService.

It would take into account all the previous pans and zooms, so each time the map refreshed, I would pass the absolute pan.

Example :
User wants to zoom in so I send a zoom factor of 0.5
User wants to zoom in again so I send a zoom factor of 0.5

Outcome, the map is zoomed in double (a .25 zoom)

Now If I send a 0.5 zoom two times, it is still only zooms in 0.5



I thought that I had included everything.. are there any variables that SOAP etc. uses internally that store that?

I hope that makes sense.

Thanks.

Wilfried
03-14-2005, 01:40 PM
Hi,

Now I underateand :)
Use Altitude to put specific zoom factors !

Anonymous
03-14-2005, 02:18 PM
I apologize, but I do not understand what you mean.
Before I did not set altitude.
Thankyou very much for your help :)

Thanks

Wilfried
03-15-2005, 02:23 AM
Hi,

To set a specific zoom level you can set Altiitude, like this:

MP.ActiveMap.Altitude = Alt;

 
Web mp2kmag.com
mapforums.com