Multimap Open API V1.2 Example
The Options topic demonstrated how to enable and disable the Context Menu on your map. This example shows how you can also determine which options appear when a user clicks on a map for which the Context Menu has been activated.
The default Context Menu items are "Zoom in", "Zoom out" and "Move map". You can remove these default items or add new items to the Context Menu.
MMMenuWidget: addItemsJSON() *updated*
If you view this in your browser you should see a Multimap draggable map centered on Boston, Massachusetts, USA, at zoom factor 15.
|
|
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://www.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: | sales@multimap.com |