Multimap API V1.2 JavaScript Example
The Multimap API now allows you to make a search of the records that have been geocoded and stored in the table of addresses that we provide as part of your your Multimap service, and to display on a map the locations that the table contains.
You should manage your table of addresses through Multimap's Client Zone extranet portal; please see your Multimap service documentation for details of how to use this.
This example focuses on pagination through search results for a spatial search. Spatial searches are based on location (such as 'Where's my nearest...?' or 'What's within the area...?').
If you view this in your browser you should see a Multimap draggable map centered on St James Ave, Boston, Massachusetts, USA, at zoom factor 15.
To the right of the map is a column of data entry fields into which you can enter selection criteria to search your data and 'page through' the results.
When you click on the "Search" button or choose a different page of results, the map changes and shows all matching search results on the map as markers; a list of their locations appears below the map. (If no results are found, or if any other problem occurs, the API displays a message to this effect.)
When you click on any of the results in the list, its marker on the map expands to show its details in an info box.
|
|
|
![]() Messages and results will be placed here
|
|
There are four 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. Finally, the fourth is the CSS code that you should add to your web page.
<script type="text/javascript" src="http://clients.multimap.com/API/maps/1.2/demo"></script>
Sorry, JavaScript required...
Sorry, JavaScript required...
Sorry, JavaScript required...
Sorry, JavaScript required...
Sorry, JavaScript required...
For more information on the subject of Multimap API JavaScript code, please read the API documentation at: http://clients.multimap.com/share/documentation/api/1.2/classes/.
If you require further help with your Multimap service implementation, additional Multimap services or general account enquiries, please contact Multimap:
| Sales: | +44 (0)20 7632 7800 |
| Customer Support: | +44 (0)20 7632 7777 |
| email: | mminform@microsoft.com |