Introduction
The GSmapSearchControl Solution is a simple to use application of the Google AJAX Search API that is designed to let you easily add a searchable map to your pages, sites, and blogs. The rest of this page discusses this topic in detail. If you just want to cut and paste some code, the "hello world" of the Map Search Control solution is available and the end of this tutorial.
The sample to the right demonstrates the solution which contains the following features:
- A search control that allows you to lookup addresses and business listings, plotting the results on a map.
- The search control has a programmable center point, and at this center point you can specify a custom title and url.
- The search control takes a small amount of verticle space while inactive, the inactive view is a small map with a white center point.
- Once a search completes, the map expands and the search result cursors allow you to scroll through the set of search results.
- Each search result contains a link to a details page for the result as well as a link to get driving directions from the center point of the map to the current search result.
- The clear button in the center of the cursor controls clears the current set of results and sets the control into the idle state.
The solution is designed for extreme eas of use. As a site designer you are able to control the center point location as well as a custom title and url. In addition, you can easily program a collection of "search links" that you can place on your page that when clicked, will drive the search control.