From MapElves
Main page -> Help -> axMapPointControl -> ActiveMap
Overview
The Map object is the document object of MapPoint. It allows access to file printing, map properties, find methods, location properties, and file saving.
Properties
| ActiveRoute | | Returns the Route object from the map.
|
| AllowEdgePan | | Returns or sets whether edge-panning is allowed.
|
| Altitude | | Returns or sets the altitude of the current map view.
|
| Container | | Returns the object that contains the specified embedded map.
|
| DataSets | | Returns the DataSets collection from the map.
|
| DragBehavior | | Returns or sets the action that results from the user dragging the mouse pointer across the map.
|
| FullName | | Returns the name of the map file, including its path.
|
| Height | | Returns the height of the map window.
|
| Left | | Returns the distance from the left edge of the screen to the map window.
|
| Location | | Returns or sets the Location object that represents the center of the current map view.
|
| MapFont | | Returns or sets the font size of the text on the map.
|
| MapStyle | | Returns or sets the map style.
|
| Name | | Returns the name of the Map object.
|
| PageSetup | | Returns the PageSetup object for the map.
|
| Path | | Returns the complete path to the map file (.ptm), excluding the final separator and the name of the map file.
|
| PixelSize | | Returns the size of a pixel for the specified map view.
|
| PlaceCategories | | Returns the PlaceCategories collection for the specified map.
|
| Projection | | Returns or sets whether the map is displayed as a flat map (Miller Cylindrical projection) or globe map (orthographic projection).
|
| Saved | | Returns or sets whether any changes have been made to the map.
|
| SavedWebPages | | Returns the SavedWebPages collection associated with the specified map.
|
| SelectedArea | | Returns the SelectedArea object for the specified map.
|
| Selection | | Returns the object current selected on the map.
|
| Shapes | | Returns the Shapes collection for the specified map.
|
| Symbols | | Returns the Symbols collection from the map.
|
| Top | | Returns or sets the distance from the top edge of the screen to the top edge of the map window.
|
| Width | | Returns the width of the map window.
|
Methods
| AddPushpin | | Adds a Pushpin to the map and returns it.
|
| CopyDirections | | Copies driving directions to the Clipboard.
|
| CopyMap | | Copies the map to the Clipboard.
|
| Distance | | Returns the distance between two locations.
|
| ExportForPocketStreets | | Exports the given area as a file ready for use in PocketStreets.
|
| FindAddressResults | | Finds a collection of Locations that are possible matches to an address.
|
| FindPlaceResults | | Returns a FindResults collection that are possible find matches based on the input string.
|
| FindPushpin | | Finds a Pushpin of a specified name and returns it.
|
| FindResults | | Returns a FindResults collection that are possible place and address find matches based on the input string.
|
| GetLocation | | Returns a Location object for a given latitude and longitude coordinate.
|
| GoBack | | Returns to the previous map view.
|
| GoForward | | Reverses the action of the GoBack method on a Map object.
|
| LocationFromOSGridReference | | Returns a Location object for a given U.K. Ordnance Survey Grid reference string.
|
| LocationToX | | Returns the X coordinate on the screen of the desired location.
|
| LocationToY | | Returns the Y coordinate on the screen of the desired location.
|
| ObjectsFromPoint | | Returns a FindResults collection corresponding to what would be selected for particular screen coordinates at the current elevation.
|
| Pan | | Shifts the map view in a given direction by a given amount.
|
| ParseStreetAddress | | Parses an address from a string into an address with constituent parts: street, city, other city, region, country, and postal code, depending on the address. Returns a StreetAddress object.
|
| Paste | | Pastes the contents of the Clipboard as follows: a Pushpin or Pushpin set to the specified DataSet object, or the data set, shape, or waypoint to the specified Map object.
|
| PrintOut | | Prints the map or driving directions with current options.
|
| Save | | Saves the specified map or template.
|
| SaveAs | | Saves the specified map or template.
|
| ShowFindDialog | | Opens the Find dialog box.
|
| Union | | Returns a Location object that represents the best map view to display all of the specified locations.
|
| XYToLocation | | Returns the Location object for the specified screen coordinates.
|
| ZoomIn | | Zooms the map view closer.
|
| ZoomOut | | Zooms the map view farther out.
|
Events
All events are passed trough to axMapPointControl if used.
| AfterRedraw | | Occurs when MapPoint is finished repainting.
|
| AfterViewChange | | Occurs when the view of the map has changed and the map is done repainting to that viewpoint.
|
| BeforeClick | | Occurs after the user clicks on the map but before MapPoint has processed the action.
|
| BeforeDblClick | | Occurs after the user double-clicks on the map but before MapPoint has processed the action.
|
| DataMapChange | | Occurs after data mapping properties are changed for a data set.
|
| MouseDown | | Occurs when a mouse button is pressed while the pointer is over the map.
|
| MouseMove | | Occurs when the mouse is moved while the pointer is over the map.
|
| MouseUp | | Occurs when a mouse button is released while the pointer is over the map.
|
| NewDataSet | | Occurs after a new data set is created.
|
| RouteAfterCalculate | | Occurs after the route has been calculated.
|
| RouteAfterOptimize | | Occurs after the stops on the route have been optimized.
|
| SelectionChange | | Occurs when a selection on the map changes.
|
How to