Multimap API V1.2 JavaScript Example
The Multimap API offers features to make requests to XML services (commonly referred to as AJAX) and parse XML via JavaScript. These features are provided in a non-browser-specific way, ensuring they are easy to use.
This example demonstrates making a request to a static XML file located on a web server. Click here to download the file used in this example (you will need to right-click on the link and save it to your local computer).
Important Note: Due to web browser security, XMLHttpRequest calls can only be made to services on the domain from which the page is served.
MultimapViewer: getXMLHTTPRequest(), parseXML()
If you view this in your browser you should see a Multimap draggable map centered on London, Great Britain, at zoom factor 15.
A request is made for an XML file from the server . When the request has completed, the map is scaled automatically to fit a number of markers which highlight various London tourist attractions.
|
|
|
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/.
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 |