This example demonstrates how to create client-side markers using the Web Mapping Tools JavaScript API.
Clicking on the map creates a marker with an icon. The new marker is created with either a standard message box or a custom popup to display detail information. The custom popup option shows that you can supply your own look and feel to the popup. Click on a marker's icon to view its popup. From there, a marker's icon can be changed (to a new color), illustrating some of the possibilities available with client-side markers.
This example also features another AJAX capability of the map viewer. When the "Map Tooltip" box is checked and you pause your mouse cursor over the map, an AJAX request is sent to the server to query for what map feature is at that location. The feature information is returned from the server and displayed as a tooltip on the map.