Welcome to MapForums!

Register, sign in, or use Facebook Connect above to join in and participate in the forum.

When you are signed in, this message, the ads in this row, and the red-underlined link ads all go away.

Subscribe to receive our newsletter.
Subscribe Unsubscribe
Results 1 to 4 of 4

Altitude doesn't seem to work for SavedWebPages.Add

This is a discussion on Altitude doesn't seem to work for SavedWebPages.Add within the MapPoint Desktop Discussion forums, part of the Map Forums category; Hi, I can set altitude and save map using SaveAs() such as: Code: map.Altitude = 100; map.SaveAs(@"C:\MyFile", MapPoint.GeoSaveFormat.geoFormatHTMLMap, false); However, ...

  1. #1
    MapUser is offline Junior Member White Belt
    Join Date
    Oct 2006
    Posts
    4

    Altitude doesn't seem to work for SavedWebPages.Add

    Hi,

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

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

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

  2. #2
    Wilfried is offline Senior Member Black Belt
    Join Date
    Nov 2004
    Location
    Belgium
    Posts
    2,433

    Re: Altitude doesn't seem to work for SavedWebPages.Add

    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.

  3. #3
    RepublicDirect is offline Junior Member Yellow Belt
    Join Date
    Feb 2010
    Location
    AZ
    Posts
    15

    Re: Altitude doesn't seem to work for SavedWebPages.Add

    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

  4. #4
    Winwaed's Avatar
    Winwaed is offline Mapping-Tools.com Black Belt
    Join Date
    Feb 2004
    Location
    Irving,Texas
    Posts
    1,859
    Blog Entries
    60

    Re: Altitude doesn't seem to work for SavedWebPages.Add

    I think when I used it, it used the current zoom level? I don't recall having a problem...


    Richard
    Winwaed Software Technology LLC
    http://www.winwaed.com
    See http://www.mapping-tools.com for MapPoint Tools

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. radius to altitude
    By sharkbait in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 06-23-2004, 11:22 AM
  2. map point altitude bug
    By Wand3r3r in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 05-21-2004, 10:15 AM
  3. objMap.SavedWebPages.Add always show parking and restaurants
    By kabecilla in forum MapPoint Desktop Discussion
    Replies: 0
    Last Post: 01-14-2004, 05:30 AM
  4. Altitude property
    By Labtek in forum MapPoint Desktop Discussion
    Replies: 2
    Last Post: 05-02-2003, 10:28 PM
  5. Is it possible to get a place's altitude ??
    By Anonymous in forum MapPoint Desktop Discussion
    Replies: 1
    Last Post: 12-27-2002, 11:30 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


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 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127