PDA

View Full Version : Altitude doesn't seem to work for SavedWebPages.Add



MapUser
10-17-2006, 07:39 AM
Hi,

I can set altitude and save map using SaveAs() such as:



map.Altitude = 100;
map.SaveAs(@"C:\MyFile", MapPoint.GeoSaveFormat.geoFormatHTMLMap, false);


However, map.Altitude doesn't seem to take any effect with SavedWebPages.Add() as in:



map.Altitude = 100;
MapPoint.SavedWebPage webPage = map.SavedWebPages.Add(@"C:\MyFile.htm", currentLocation, "My Map", true, false, false, 500, 500, false, false, false, true);



The reasone I need to use SavedWebPages.Add() is because I want to specify the width and height of the output map image. Right now, SaveAs() allows me to set altitude while SavedWebPages.Add() allows me to specify width and height. Neither of them can do both. I am wondering if there is any work around to set altitude AND specify output image's size. Thanks a lot...


Pete

Wilfried
10-19-2006, 11:02 AM
Hi,

A workaround may be to copy the map to clipboard, then copy it into a bitmap image in your application where you can specify the width and height.

RepublicDirect
05-04-2010, 04:36 PM
I know it was a long time ago, but did you ever figure out a solution to resize your maps? I need to use the SavedWebPages.add feature too, and I'm having the same problem..

Thanks,
Matt

Winwaed
05-05-2010, 06:48 AM
I think when I used it, it used the current zoom level? I don't recall having a problem...


Richard