Multimap API V1.2 JavaScript Example
The Multimap Open 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 Open 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://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 API JavaScript code, please read the API documentation at: http://www.multimap.com/share/documentation/api/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: | sales@multimap.com |