Multimap API V1.2 JavaScript Example
The Multimap API now allows you to check for available geographic coverage before panning, zooming or moving a map or aerial photograph to a new location; this means that, if a user requests a map or aerial photograph at a zoom factor that is unavailable, the map viewer shows the nearest available zoom factor. This option is enabled by default.
In certain areas we are not able to offer full map or aerial coverage; in these areas, we offer a tile explaining this.
If you view this in your browser you should see a Multimap draggable aerial photograph centered on Antananarivo, Madagascar, at zoom factor 10.
This service does not offer street-level coverage of Antananarivo beyond zoom factor 13, so clicking on the "Antananarivo Zoom Level 14" or "Antananarivo Zoom Level 19" links demonstrates the effect of the API's 'check coverage' feature:
|
|
There are three parts to the code below. The first is the line that links to the Multimap API. The second is an example of the HTML you must have in your page. The third is an example of the JavaScript required to implement the page.
<script type="text/javascript" src="http://clients.multimap.com/API/maps/1.2/demo"></script>
Sorry, JavaScript required...
Sorry, JavaScript required...
Sorry, JavaScript required...
For more information on the subject of Multimap API JavaScript code, please read the API documentation at: http://clients.multimap.com/share/documentation/api/1.2/classes/.
For more information on the subject of Multimap API JavaScript code, please read the API documentation at: http://clients.multimap.com/share/documentation/api/1.2/classes/.
If you require further help with your Multimap service implementation, additional Multimap services or general account enquiries, please contact Multimap:
| Sales: | +44 (0)20 7632 7800 |
| Customer Support: | +44 (0)20 7632 7777 |
| email: | mminform@microsoft.com |