Multimap Open API V1.2 Example
This example demonstrates the various events that can occur on the map. An event is fired when something happens on the map, such as when the user clicks on the map; you may assign functions which should be called when events occur.
MultimapViewer: removeEventHandler(), removeOverlay()
click, changeZoom, drag, startPan, endPan, addOverlay, removeOverlay, removeAllOverlays, openInfoBox, closeInfoBox, onMouseOver, onMouseOut
If you view this in your browser you should see a Multimap draggable map centered on Carrington Street, Sydney, Australia, at zoom factor 15.
To see how events are invoked, click on each of the map controls, try dragging the map, and try double-clicking to re-center it. You should also click on the links on the right-hand side of the page and on the marker, and move the mouse so that it hovers over the marker and off again. As you perform these actions you should see information about the events that are triggered appearing at the bottom of the page in the logging area. Only the five most recent events are shown.
|
|
|
|
|
|
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...
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 |