Multimap API v1.1 Example

"No Data" Example

In certain areas we are not able to offer full map coverage; in these areas, we offer a tile explaining this.

What You Should See

If you view this in your browser you should see a Multimap draggable map centered on Cork, Republic of Ireland, at zoom factor 13. When you click on the first link the page pans south to display the "No Data" image. Clicking on the second link pans you north to the area for which we have data again.

The Map

Go out of range

Go into range

The Code

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.

The header code

<script type="text/javascript" src="http://clients.multimap.com/API/maps/1.1/demo"></script>

The body code

<!-- The Multimap Map-->
<div id="mapviewer" style="width : 500px; height : 420px;"></div>

<!-- The Map Controls -->
<p><a href="#" onclick="mapviewer.panToPosition( new MMLatLon( 51.586366,-8.437157 ) ); return false;">Go out of range</a></p>
<p><a href="#" onclick="mapviewer.panToPosition( new MMLatLon( 51.894782,-8.493118 ) ); return false;">Go into range</a></p>

The JavaScript code

var mapviewer;

function onLoad()
{
     //Add the map 
     mapviewer = new MultimapViewer( document.getElementById( 'mapviewer' ) );
     mapviewer.drawAndPositionMap( new MMLocation( new MMLatLon(51.894782,-8.493118 ), 13 ) );
}

MMAttachEvent( window, 'load', onLoad );

For more information on the subject of Multimap API JavaScript code, please read the API documentation at: http://www.multimap.com/share/mapviewerapidocs/1.1/index.html.

Further Help

If you require further help with your map API implementation, please contact our Customer Support team:

Australia, Sydney + 61 (0) 2 9262 6551
Great Britain, London +44 (0)20 7632 7777
United States, Boston + 1 617 423 4510
email: info@multimap.com

For general account enquiries or further services, please contact your Multimap Sales team:

Australia, Sydney + 61 (0) 2 9262 6551
Great Britain, London +44 (0)20 7632 7800
United States, Boston + 1 617 423 4510
email: sales@multimap.com