Google Maps service

This assignment will give you practice using a Web service.

Start by reading the Google Maps API.

Add a link to a map showing where you live to your home page on sws.csudh.edu.

You will need a key for your directory on sws.csudh.edu. You need to fill in a form giving your URL to get the key. (Your directory is http://sws.csudh.edu/<your name>).

You will need the latitude and longitude of your house. You can get that at: Geocoder or Geocode.

When you have the map working properly, see if you can add controls for scrolling and showing a satellite view. Also add a marker showing where you live. You will have to read the API documentation to see how to add the marker.

Print the finished map and turn it in.

Also experiment with the arguments of the centerAndZoom method, then answer the following questions:

  1. If you increase the latitude, in which direction does a GPoint move? (north, south, east or west)
  2. If you increase the longitude, in which direction does a GPoint move? (north, south, east or west)
  3. What is the lower limit of the zoom argument?
  4. What is the upper limit of the zoom argument?

Disclaimer: The views and opinions expressed on unofficial pages of California State University, Dominguez Hills faculty, staff or students are strictly those of the page authors. The content of these pages has not been reviewed or approved by California State University, Dominguez Hills.