Multimap logo Multimap Open API V1.2 Example

Map Data Preferences Example *new*

The Multimap Open API now allows you to view and vary the sources of map data that are available.

Multimap offers map coverage with maps from more than one data provider for many areas of the world, encompassing a range of map zoom levels. This means that developers often have a choice as to which provider's maps to implement.

Function(s) introduced:

MultimapViewer: redrawMap()
MMDataResolver: getCopyright(), getCoverage(), getDataPreferences(), setDataPreferences()

What You Should See

If you view this in your browser you should see a Multimap draggable map that shows part of the city of London, UK, at zoom factor 15.

When you click on the "Display map data preferences for this location" link, a message box appears showing a list of data providers whose maps are available, with the name of the provider whose map is currently being shown appearing at the top of the list. The list of data providers in this example is populated automatically and shows all available data sources.

When you click on the "Reverse map data preferences" link, the map changes to show another map data provider's map of the same area: for example, Collins Bartholomew street-level maps in London. Clicking the same link again reverses this change, so that the original map reappears.

When you click on the "Go to Wellington" link, the map is replaced by one of the city of Wellington, New Zealand, at zoom factor 9. Clicking the same links as before shows a different selection of maps.

When you click on the "Go to London" link, the original map of London appears again.

The Map

The Code

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.

The header code

<script type="text/javascript" src="http://developer.multimap.com/API/maps/1.2/OA08061815803962482"></script>

The body code

Sorry, JavaScript required...
Sorry, JavaScript required...

The JavaScript code

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/.

Back to examples.

Further Help

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