Save a map as a Web page

When you save a map as a Web page, a collection of graphics files (.gif files) is saved along with the Web page (.htm file) in folder layout. For example, if you save a map as a Web page with the file name MyMap.htm in a folder named My Documents, a subfolder named MyMap_files, which contains the collection of graphics files, is created under My Documents. To accomplish this task, you must have permissions to create folders on your computer.

  1. Determine what you want to include on the Web page, and then prepare your map file:

    Include hyperlinks

    Associate hyperlinks with pushpins on your map.

    How?

    Include driving directions

    1. Create a route on the map.

      How?

    2. Show the Directions pane.

      How?

    3. Expand or collapse directions by clicking Gg674633.ALLExpand(en-us,MSDN.10).gif in the Directions pane.

    Include the map legend

    1. Open the Legend and overview pane.

      How?

    2. Expand the legend sections that you want to include.

      How?

    Include an image of the map

    Position the map to get the view that you want.

  2. On the File menu, click Save as Web page.

  3. In the Title box, type the title that you want to appear as the heading.

    Note   This title will also appear in the Manage Saved Web Pages dialog box.

  4. In the Items to save section, select the check boxes next to the items that you want included on your Web page.

    Items

    Check box

    Action

    Map

    Includes the current map view or the selected area on the map. This map view cannot be changed after the Web page is saved.

    Include hyperlinks

    Includes the hyperlinks associated with your map. This check box is available only if Map is also selected.

    Create a thumbnail page

    Creates an additional Web page that includes a thumbnail image of the map that links to your Web page. This check box is available only if Map is also selected.

    This figure shows an example of a thumbnail page and how the thumbnail image expands into a full-page view:

    Gg674633.ALLThumbnail(en-us,MSDN.10).gif

    Driving directions

    Includes driving directions for the route on your map. This check box is available only if a route has been calculated on your map.

    Map legend

    Includes the expanded sections of the open map legend.

    Overview map

    Includes the Overview map.

    Create a hyperlink to a separate copy of this map file (.ptm)

    Creates a separate copy of your map file in the same location as your Web page and adds a hyperlink to that file on your Web page.

  5. To change the dimensions of the map from the current map view, type new dimensions in the Width and Height boxes.

    Notes

    • The default width and height represent the current map view or selected area as it appears on your screen, not the other elements of the Web page. Changing the default value changes the map view saved to the Web page. For example, if you increase the width and height, it has the same effect as making your map window larger to show more geography while keeping the same elevation.

    • The width and height must be from 32 through 3,500 pixels.

  6. In the Filename box, type the location and file name that you want for your Web page.

    Note   If you selected Create a thumbnail page, this is the name and location of the thumbnail page. The main Web page will have the same file name, but it will be located in the graphics subfolder.

  7. To automatically update your Web page with any changes that you make to your map every time changes are saved to the map file (.ptm), select the AutoSave as web page every time this map is saved check box.

  8. To automatically open your new Web page after you've finished creating it, select the Open saved web page in browser now check box.

  9. Click OK.

Note   Remember that copyright rules apply to maps.

Tip   You can save multiple Web pages from a single map file, each showing a different map view or combination of any of the other options. Just be sure to save each Web page by using a unique file name in step 6. You may also want to give each Web page a unique title in step 3.

Related topics