IncludeMap property

Returns or sets whether a map is included on the Web page. The default map view is the Location property of the Map object (the current map view). To include a selected area of the map, pass in the Location property of the SelectedArea object. Read/write Boolean.

Applies to

Objects:  SavedWebPage

Syntax

object.IncludeMap

Parameters

Part Description
object Required. An expression that returns a SavedWebPage object.

Example

    Sub IsMapIncluded()

  Dim objApp As New MapPoint.Application   Dim objMap As MapPoint.Map   Dim objRoute As MapPoint.Route   Dim objSW As MapPoint.SavedWebPage
  'Set up the application   Set objMap = objApp.ActiveMap   Set objRoute = objMap.ActiveRoute   objApp.Visible = True   objApp.UserControl = True
  'Create a route   objRoute.Waypoints.Add objMap.FindResults("Seattle, WA").Item(1)   objRoute.Waypoints.Add objMap.FindResults("Redmond, WA").Item(1)   objRoute.Calculate
  'Create a saved Web page   Set objSW = objMap.SavedWebPages.Add("SavedWeb", _     objRoute.Waypoints.Item(1).Location, "New Title", _     True, False, True, 200, 400, False, True, False, True)   objSW.Save
  'Is the map included on the Web page?   If objSW.IncludeMap = True Then     MsgBox "Map is included on the Web page."   Else     MsgBox "Map is not included on the Web page."   End If
  End Sub

Note  This sample code is specific for use in MapPoint North America; it is for illustration purposes only.