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.
Searches can be based on spatial criteria, non-spatial criteria or a combination of both:
If you view this in your browser you should see a Multimap draggable map centered on Fleet Street, London, Great Britain, 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 filter the results.
Please note that the effects of all these selection criteria are cumulative; if you select criteria on which to filter your data, a record appears in your list of results only if it matches all the criteria you have set.
like operator uses 'wildcard' characters to match patterns,
so that, for example, "like *tim*" equates to "contains tim".
When you click on the "Search" button, the map changes to show all possible matching search results on the map as markers; a list of their locations appears below the map. For example, if you select a "Result set size" of 100, a "Count" of 20, and a "Start index" of 51, the page displays records 51 to 70 of 100 possible records. (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.
Please see the corresponding section of the topic on non-spatial searching.
|
|
|

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/.
The Multimap API allows you to upload your store data via Multimap's Client Zone extranet and test it in a preview environment before making the data live. To view your preview data on a web page similar to this one, specify
<script type="text/javascript" src="http://preview.multimap.com/API/maps/1.2/demo">
instead of
<script type="text/javascript" src="http://clients.multimap.com/API/maps/1.2/demo">
in the <HEAD> section of your web page.
For further details of your preview and live environments, please see Multimap's separate Geocoding and Data Management in Client Zone: Implementation Guidelines / Software Development Kit (SDK) documentation.
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 |