Chapter 12: Point Mashups with Google Maps
From Mapping in the Cloud by Michael Peterson
All Google Maps API examples here do not use a key. Domains and related sub-domains that had used Google Maps API before June 22, 2016 should find that the maps still function without a key. That's why the keyless examples work from this page. If the Google Map examples below don't work once you upload them to your server, you need to get a free key from Google. Further details of this new requirement and other changes to the Google Maps API usage policy can be found here at this site. The key that Google provides to you for free would be added to the call to the API, like this:
- 12.02 - Icons: Change the icon by referencing a different icon in the Markers folder. Icons. Change map size and location.
- 12_02b_Markers_Legend: Change the location and icons. Increase the size of the map.
- 12.03 - Multiple icons in single file: Change the offset values to the recycle icon.
Change map size and location.
- 12.04 - Random markers: Change the location and the number of markers.
To make the box, coordinates need to be defined for the southwest (slat, wlong) and northeast corners (nlat, elong). Change map size.
- 12_04b_Random_geo: Change icon, size of map and replace this line with a title
- 12.05 - Points and infowindows in Arrays: Change the number of points, their locations and the associated infowindow text and picture.
- 12.06 - Mapping points from a XML file: Open the "example.xml" file and enter new coordinates.
Change map size.
- 12.07 - Mapping points from a JSON file: Open the "SW.JSON" file and enter new coordinates.
Change map size.
- 12.08 - Mapping points from a flickr feed: Change map size. Change the flickr feed to another city by providing an address in this format:
- 12_08b_Places_Location_by_distance - Change the size and location of the map, the type of search, and explain with this line of text
- 12_08c_Places_Radar_search - Change the size and location of the map, the type of search, and explain with this line of text
- 12.09a - KML Earthquakes in the past week: Change size and add title.
12.09b - KML Earthquakes with view modification: Change the view to another area. Change size and add title.
JSON is the emerging standard for supplying geographic data feeds:
12.09c - JSON Earthquake Markers: Change the earthquake display based on different data available from JSON Earthquake Feeds
12.09d - JSON Earthquake Circles: Change the earthquake display based on different data available from JSON Earthquake Feeds
12.09e - JSON Earthquake Shaded: Change the earthquake display based on different data available from JSON Earthquake Feeds
- KML Examples: 12.10a - Ski-Jumping in Canada | 12.10b - Hawaii weather stations | 12.10c - World Volcanoes | 12.10d - Nuclear Power Japan: Change each to another KML for JSON feed. Weather related KML/KMZ feeds are available through NOAA. Copy link location (right-mouse click) for a link that ends in KML or KMZ. You can also save the file locally but the link must include the entire http address. Adjust view as appropriate. Change map size.
- 12.11 - KML file with three points: Change the "three_points" KML file to show three other points.
Change the address of the KML file to your server. Change map size and center. Locations are provided in KML in reverse order - longitude and then latitude.
- 12.12 - KML Three points with icon: Change the "three_points" KML file to show three other points and another icon.
Change the address of the KML file to your server. Change map size. Locations are provided in KML in reverse order - longitude and then latitude.
- 12.13 - Fusion Chicago Crime: Find a different public FusionTable with integrated map through the Fusion Table search page. Change map size.
- 12.14 - Fusion Table with SQL: Change ridership number and map size.
- 12.15a - Fusion World Cities: Change size and add title.
12.15b - Fusion World Cities GT than 5 Million: Change the population cut-off number.
Change map size.
- 12.16 - Australia Post Offices FusionTable: The Australia Post Offices examples maps out a large number of points with a Fusion Table. You will map the flight track between two cities using the same dots. 1) Choose a flight that has arrived between two cities with FlightAware Flight Finder; 2) Under "track log & graph," copy the table of data and paste into Excel. A tracklog consists of the actual and estimated positions of aircraft. Estimations are made when the plane does not have contact with receivers on the ground.; 3) Delete unneeded columns and create an Excel file of just latitude and longitude.
4) Save and upload the Excel file to a Fusion Table. 5) Specify the two columns as signifying location; 6) Share your Fusion Table so that you can have access; 7) Create a map in the Fusion Table; 8) Change the address of the Fusion Table in the Australia Post Offices code. Enter this address in the code in the line defining the layer. Change map size.
- 12.17 - Fusion Table based on KML file: Create another Fusion Table from a KML file
- 12.17a - Points from a geoJSON file: Modify the geoJSON file to show other points and icons.
- 12.18 - Geocoder: Enter your own address in the code so that it will be the default location of the map.
- 12.19 - Omaha Murders Fusion Table: Enter at least 5 comma-delimited street addresses into a single column of a spreadsheet and upload to a Fusion Table. Change map size.
- 12.20 - Circles: Change location and color of circles. Change map size.
- 12.21 - Circles of US Cities: Change location and size of the circles. Change map size.
- 12.22 - Draggable_circle: Change location and size of the circle. Change map size.
- 12.23 - Square_symbol: Change location and size of the square. Change map size.
- 12.24 - Star_symbol: Change location and size of the star. Change map size.
- Use EasyMapMaker to convert these street addresses to latitude/longitude values (don't bother with the key).
Paste into a spreadsheet file. Use a concatenate option to construct a KML file in the proper format and map out.
- Search for the smallest icon in the form of a dot. Use this icon to map out the Australia post office locations.
- Convert the world cities Fusion Table file to a KML.
- Map a flight track files so that each point includes an infowindow with data about the current location, elevation and speed.
Return to my assignments page