Multimap logo Multimap Open API V1.2 Example

Decluttering Markers *new*

The Multimap Open API now allows you to improve the appearance of multiple icons on a map.

When two or more separate locations are specified on a map there is a chance that the icons that mark them may overlap, especially where the map in question is on a large scale or has been zoomed out. To avoid this, the Multimap Open API offers options for 'decluttering' icons that are close to each other.

Arranging clusters

There are two methods for arranging clusters:

Identifying clusters

There are two methods for identifying clustered locations:

The default behavior is 'aggregate' and 'fast'.

Marker management

You can now combine marker 'decluttering' and filtering; please see the separate topic on Filtering Markers.

Function(s) introduced:

MultimapViewer: declutterGroup()

What You Should See

If you view this in your browser you should see a Multimap draggable map centered on Saint James Avenue, Boston, Massachusetts, USA, at zoom factor 15.

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