Chapter 10: Map Mashups

From Mapping in the Cloud by Michael Peterson


In these examples, the size of the map is usually changed in the div statement in the body part of the file. To determine a new location for a map in latitude/longitude, use the right-mouse click in Google Maps (Mac: control/click) on the desired point. Select "What's here?" from the pop-up menu, click on the specified location in the the pop-up window and copy the latitude and longitude coordinates from the Google Maps address bar.

All Google Maps API examples here use a key that is assigned to a specific server. You may need to acquire your own key. If the Google Map examples below don't work once you upload them to your server, you will need to get your own key from Google. As of July 2018, the Google key requires that you enter a credit card. The first $200 of usage is free. This equates to about 28,000 maps a month, more than most developers would need.


  1. Google Maps API - Reference
  2. Bing Maps API - Reference (Updated to Version 8, June 2017)

  3. Nokia Maps API - Reference
  4. MapQuest API - Reference
  5. OpenStreetMap (OSM) OpenLayers API - Reference
  6. Leaflet Maps API - Reference || Examples of layers that can be used with Leaflet

  7. China Mapping APIs - Baidu Reference || AutoNavi Reference | Tencent Reference
  8. ESRI API -
  9. Pair-wise Map Comparisons - These examples present two maps side-by-side from two different mapping services. The scale and location for each pair-wise comparison is identical and randomly determined. US examples limit the random locations to the 48 states. EU examples are for Europe. EXTRA CREDIT: Add a comparison between two other map providers, or change the bounding box to another continent.

  10. Extra credit
  1. Make a display with two maps at the identical location and zoom level using two different APIs.
  2. Style a Google map so that it depicts only oceans and the outlines of countries.
  3. Use Leaflet to display a Bing map.
  4. Make a Google Map that automatically cycles between the map and satellite views.

Return to my assignments page