Multimap Open API V1.2 Example
The Multimap Open 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 Open 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://developer.multimap.com/API/maps/1.2/OA08061815803962482"></script>
Sorry, JavaScript required...
Sorry, JavaScript required...
Sorry, JavaScript required...
For more information on the subject of Multimap Open API JavaScript code, please read the Multimap Open API documentation at: http://clients.multimap.com/share/documentation/openapi/1.2/classes/.
If you require further help with your Multimap Open API implementation, please visit the Multimap Developer Forums.
For Open API news, announcements and other information, please see our blog.
For general account enquiries or further services, please contact the Multimap Sales team:
| London, Great Britain | +44 (0)20 7632 7800 |
| email: | mminform@microsoft.com |