Multimap API V1.2 JavaScript Example
Although the ability to drag maps with a mouse is a core feature of the Multimap API, customers may wish to disable this feature. This example gives a demonstration of how you can use the API to limit the areas to which a user can pan.
moveMap
If you view this in your browser you should see a Multimap draggable map centered on Fleet Street, London, Great Britain, at zoom factor 10. The map viewer has been set up to limit all types of panning to a rectangular area around the M25 motorway which encircles London. Regardless of which method is used to pan the map, the map does not allow the user to pan far outside the M25.
|
|
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...
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 |