VEMap Class
Provides Bing map and search functionality to a Web page.
Constructor
| Name | Description |
|---|---|
|
Initializes a new instance of the VEMap object. |
Public Events
The events of the VEMap Class are divided into events specific to Bing Maps, mouse events, and keyboard events. For a complete list of VEMap events, see the VEMap Events topic.
| Name | Description |
|---|---|
|
Input events produced by the keyboard connected to the computer. |
|
|
Input events produced by the mouse device connected to the computer. |
|
|
The events of the VEMap Class specific to Bing Maps. |
Public Methods
| Name | Description |
|---|---|
|
Adds a custom control to the map. |
|
|
Adds a custom layer to the map. |
|
|
Adds an existing VEShape Class object, as specified by the shape parameter, to the base layer. |
|
|
Adds the specified shape layer to the map. |
|
|
Adds a tile layer to the map, and if the visibleOnLoad parameter is true, it also shows it on the map. |
|
|
Attaches a Map Control event to a specified function. |
|
|
Removes all shapes, shape layers, and search results on the map. Also removes the route from the map, if one is displayed. |
|
|
Clears out all of the default Bing Maps info box CSS styles. |
|
|
Clears the traffic map. |
|
|
Deletes all shape layers, along with any shapes within the layers. |
|
|
Deletes all shapes in all layers, leaving empty layers behind. |
|
|
Removes the specified control from the map. |
|
|
Clears the current route, VERoute Class object, from the map. |
|
|
Deletes a VEShape Class object from any layer, including the base map layer. |
|
|
Deletes the specified shape layer from the map. |
|
|
Deletes a tile layer from view. |
|
|
Detaches the specified map control event so that it no longer calls the specified function. |
|
|
Deletes the VEMap object and releases any associated resources |
|
|
Specifies whether shapes are drawn below a threshold zoom level. |
|
|
Stops the continuous map panning initiated by a call to the VEMap.StartContinuousPan Method. |
|
|
Returns an array of found results. |
|
|
Performs a search for locations that match a VELatLong Class input. |
|
|
Finds a geographic location based on a specified address or place name string as well as other geocoding options. |
|
|
In 3D mode, returns a double that represents the altitude (in meters) above the geoid. |
|
|
If the map view is already set to bird's eye, returns the current VEBirdseyeScene Class object. |
|
|
Returns a VELatLong Class object that represents the location of the center of the current map view. |
|
|
Draws a multi-point route on the map and sends details about the route to a callback function. |
|
|
In 3D mode, returns an integer that represents the compass heading of the current map view. |
|
|
Returns information about the requested imagery, including imagery date stamps and vendor attribution. |
|
|
Returns the pixel value of the left edge of the map control. |
|
|
Returns the current map mode. |
|
|
Returns the current map style. |
|
|
Returns the current map view object as a VELatLongRectangle Class object. |
|
|
In 3D mode, returns an integer that represents the pitch of the current map view. |
|
|
Deprecated. Draws a route on the map and sends details about the route to a callback function. |
|
|
Gets the reference to a VEShape Class object based on its internal identifier. |
|
|
Gets the reference to a VEShapeLayer Class object based on its index. |
|
|
Gets the total number of shape layers on the map. |
|
|
Gets the number of tile layers. |
|
|
Gets a tile layer based upon its identifier. |
|
|
Gets a tile layer based upon an index value. |
|
|
Returns the pixel value of the top edge of the map control. |
|
|
Returns the current version of the map control. |
|
|
Returns the current zoom level of the map. |
|
|
In 3D mode, hides the default user interface for controlling the map in 3D mode. By default, this control is shown. |
|
|
Hides all of the shape layers on the map. |
|
|
Hides the base tile layer of the map. |
|
|
Hides the specified control from view. |
|
|
Hides the default user interface for controlling the map (the compass and the zoom control). |
|
|
Deprecated. Removes the Find control from the map. |
|
|
Hides a shape's custom or default info box. |
|
|
Hides the mini map from view. |
|
|
Hides the scale bar from the map. |
|
|
Hides a tile layer from view. |
|
|
Hides the traffic legend. |
|
|
Imports data from a Wavefront OBJ file and displays it as a 3D model on the map. |
|
|
Imports data from a GeoRSS feed, Bing Maps (http://maps.live.com) collection, or KML URL. |
|
|
Changes the map view so that it includes both the specified VELatLong Class point and the center point of the current map. |
|
|
Determines whether the bird's eye map style is available in the current map view. |
|
|
Converts an array of VELatLong Class objects (latitude/longitude pair) to an array of VEPixel Class objects. |
|
|
Loads the traffic map. |
|
|
Loads the specified map. All parameters are optional. |
|
|
When in 2D mode, moves the map the specified amount. |
|
|
Pans the map to a specific latitude and longitude. |
|
|
Converts a pixel (a point on the map) to a VELatLong Class object (latitude/longitude pair). |
|
|
Removes a custom layer from the map. |
|
|
Resizes the map based on the specified width and height. |
|
|
Performs a search based on a given query and options. |
|
|
In 3D mode, sets the altitude, in meters, above the WGS 84 ellipsoid in the map view. |
|
|
Changes the orientation of the existing bird's eye image (VEBirdseyeScene Class object) to the specified orientation. |
|
|
Overloaded. Displays the specified bird's eye image. |
|
|
Centers the map to a specific latitude and longitude. |
|
|
Centers the map to a specific latitude and longitude and sets the zoom level. |
|
|
Sets a Bing Maps token for the VEMap object. |
|
|
Sets the credentials to use to authenticate map service requests. |
|
|
Sets the map dashboard size and type. |
|
|
Sets the info box CSS styles back to their original classes. |
|
|
Specifies what the map control does when a request to the server to get the accurate position of a shape when the map style is changed to birdseye fails. |
|
|
In 3D mode, sets the compass heading of the current map view. |
|
|
Sets the mode of the map. |
|
|
Sets the style of the map. |
|
|
Sets the map view to include all of the points, lines, or polygons specified in the provided array, or to the view defined by a VEMapViewSpecification Class object. |
|
|
Specifies whether to zoom to the center of the screen or to the cursor position on the screen. |
|
|
In 3D mode, sets the pitch of the current map view. |
|
|
Sets the print options for the current map. |
|
|
Sets the distance unit (kilometers or miles) for the map scale. |
|
|
Specifies the accuracy in converting shapes when the map style is changed to birdseye. |
|
|
Specifies how to draw the polygons or the polylines whose points exceed the maximum limit or when a request to the server fails when the map style is changed to birdseye. |
|
|
Sets the number of "rings" of map tiles that should be loaded outside of the visible mapview area. |
|
|
Specifies the text shown with the traffic legend, if visible. |
|
|
Sets the view of the map to the specified zoom level. |
|
|
Controls whether or not to show the Birdseye and BirdseyeHybrid map styles when the map mode is set to VEMapMode.Mode3D. |
|
|
In 3D mode, shows the default user interface for controlling the map in 3D mode. By default, this control is shown. |
|
|
Shows all shape layers on the map. |
|
|
Shows the base tile layer of the map. |
|
|
Makes the specified control visible. This method only affects control elements that have been hidden from view using the VEMap.HideControl Method. |
|
|
Shows the default user interface for controlling the map (the compass-and-zoom control). By default, this control is shown. |
|
|
Specifies whether the default disambiguation dialog is displayed when multiple results are returned from a location query. |
|
|
Deprecated. Shows the Find control, which enables users to enter search queries. |
|
|
Shows a shape's custom or default info box. |
|
|
Displays the specified message in a dialog box on the map. |
|
|
Displays the mini map at the specified offset from the top left corner of the screen. |
|
|
Displays the scale bar on the map. |
|
|
Shows a tile layer from view. |
|
|
Displays the traffic legend. |
|
|
Moves the map in the specified direction until the VEMap.EndContinuousPan Method is called. |
|
|
Increases the map zoom level by 1. |
|
|
Decreases the map zoom level by 1. |
Public Properties
| Name | Description |
|---|---|
|
Specifies the function to call when the map is first loaded. |