Seattle Movie Finder: An AJAX- and REST-Powered Virtual Earth Mashup
by Dare Obasanjo
|
Pages: 1, 2, 3, 4, 5
Methods and Events on the Virtual Earth Map Control
The Msn.VE.MapControl object has a number of methods which are documented in the Virtual
Earth Standard Map Control SDK documentation. The following table lists the methods available on the Msn.VE.MapControl object and their behaviors.
| Method | Description |
|---|---|
Creates a Virtual Earth map in an HTML container. Latitude, longitude and zoom level can be specified as the default when the map loads |
|
|
Adds a pushpin to the map at a specified location. Text and user-defined CSS styles can be added to the pushpin |
Attaches a map control event to a specified function |
|
Clears all the pushpins on the map |
|
Pans the map by the desired amount in a fluid motion |
|
Returns
the current |
|
Returns
the current |
|
Returns the current map style |
|
Returns the approximate number of meters on the globe represented by each pixel on the map, at the specified latitude and zoom level |
|
Returns
an |
|
Gets
the |
|
Gets
the |
|
Gets the current zoom level |
|
Changes
the map view ( |
|
Initializes
a new instance of the |
|
Indicates whether animated zooming and panning are enabled |
|
Determines whether Bird's Eye imagery is available in the current map view |
|
Converts
a |
|
Moves the map by the desired amount |
|
Moves the position of the map to a specified latitude and longitude |
|
Converts
a |
|
Removes a pushpin from the map using the specified identifier |
|
Changes the size of the map |
|
Enables or disables animated zooming and panning |
|
Determines
the best map view ( |
|
Centers the map to a desired latitude and longitude |
|
Centers the map to a specific latitude and longitude and sets the zoom level |
|
Changes the style of the map, to road, aerial, oblique, or hybrid |
|
Changes
the orientation of the existing Bird's Eye image ( |
|
Displays
the Bird's Eye image specified by the |
|
Changes
the map to the specified |
|
Determines
the best map view ( |
|
Zooms the map to the specified level |
|
Interrupts a continuous pan |
|
Zooms the map in to the next level |
|
Zooms the map out to the previous level |
There are also a number of events which are supported by the map control.
| Event | Description |
|---|---|
|
Event fired whenever the map view changes |
|
Event fired when the user clicks on the map |
|
Event fired when the user right-clicks on the map |
|
Event fired when the map finishes the continuous pan |
|
Event fired when the zoom finishes |
|
Event fired when there is a map control error |
|
Event fired when the map style changes |
|
Event fired when the user releases the click |
|
Event fired when the Bird's Eye image scene ID is changed. This event only fires if the map is currently displaying a Bird's Eye image and that image is changed |
|
Event fired when switching to Bird's Eye imagery from another map style |
|
Event fired when switching from Bird's Eye imagery to another map style |
|
Event fired when the map is resized |
|
Event fired when the map starts continuous pan |
|
Event fired when the zoom starts |