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.
- Google Maps API - Reference
- Bing Maps API - Reference (Updated to Version 8, June 2017)
- Basic Bing Map: Change the center of the map and the map size.
- Bing Maps_Marker: Change the center of the map, and the map size and the marker info.
- Bing Maps_Infobox: Change the center of the map, and the map size and the infobox info.
- Bing Maps Pushpin InfoWindow: I changed the size and location of the map, and the contents of the infowindow.
- BingMaps SVG: Change the size of the map, the style of the SVG symbol, and the location of the map. .
- BingMaps Polygon: I changed the size of the map, the style of the triangle and the location of the map.
- Nokia Maps API - Reference
- Basic Nokia Map: Change the map's location and size.
- Marker: Change the center of the map, map size, and the position of the markers.
- Styled Markers: Change the center of the map, map size, and the style of the markers.
- Info Windows: Change the size and location of the map, and the text and style of the two pop-up windows.
- Polygon: I changed the size and location of the map, and the style of the polygon.
- MapQuest API
- Reference
- MapQuest1_Basic: Change the center of the map and the map size.
- MapQuest2_wControls: Change the center of the map, the map size and the position of the controls.
- MapQuest3_Marker: Change the center of the map, the map size and map type. MapQuest map types are: map, sat, hyb
- MapQuest4_Line.: Change the center of the map, the line, the map size, and map type.
- OpenStreetMap (OSM) OpenLayers API - Reference
- Basic: Change the center of the map and map size.
- Controls: Change the center of the map and map size.
- Marker: Change the center of the map, map size, and the position of the marker.
- Markers: Change the center of the map, map size, and the position of the markers.
- Hover: Change the center of the map, map size, and the position of the marker
- Projection: Change back to Web Mercator
- SPC projection: Change center and zoom level
- Leaflet Maps API - Reference || Examples of layers that can be used with Leaflet
- China Mapping APIs
- Baidu Reference || AutoNavi Reference
| Tencent Reference
- ESRI API -
- Basic_Map: Change the basemap, the center of the map and the map size.
- Basic_Map_Point: Change the basemap, the center of the map and the map size.
- Info_Window_Map_Point:
Change the basemap, the center of the map, the text in the infowindow, and the map size.
- Detailed_Info_Map_Point:
Change the basemap, the center of the map, the text in the infowindow, and the map size.
- Detailed_Info_Map_Point_HYBRID: Change the center of the map, the text in the infowindow, and the map size.
- Virtual_Globe: Change the center of the map, the text in the infowindow, and the map size.
- 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.
Extra credit
- Make a display with two maps at the identical location and zoom level using two different APIs.
- Style a Google map so that it depicts only oceans and the outlines of countries.
- Use Leaflet to display a Bing map.
- Make a Google Map that automatically cycles between the map and satellite views.
Return to my assignments page