Objective
This exercise provides a very simple example of using address information to display a street map using the Google Static Map API. The Google Maps facility can be used in many more sophisticated ways. This example is intended to illustrate that provided you have good address data, a static map can quite easily be displayed.
The information to build this example was taken from:
http://code.google.com/apis/maps/documentation/staticmaps/#quick_example
See the following URL for full documentation:
http://code.google.com/apis/maps/documentation/staticmaps/
The supplied example shows how the following <img> tag will display a street map around the Brooklyn Bridge, New York.
<img src=http://maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap
&markers=color:blue%7Clabel:S%7C40.702147,-74.015794&markers=color:green%7Clabel:G%7C40.711614,-74.012318
&markers=color:red%7Ccolor:red%7Clabel:C%7C40.718217,-73.998284&sensor=false>
A simple employee enquiry will display a static street map for the employee's address.
To meet this objective you will complete the following:
Step 1. Create an Employee Enquiry WAM
Step 2. Add logic to set up URL to Google Map Service
Before You Begin
Complete the introductory exercises, WAM005, WAM010, WAM015 and WAM020.