Download presentation
Presentation is loading. Please wait.
Published byAndra Wood Modified over 8 years ago
1
Point Maps Peterson’s Chapter 11 & 12
2
Points and Point Maps Points – Datum and coordinate systems – geocoding Point Maps – Show where points are (just location) – Show some attributes associated with points (graduated symbols)
3
Geocoding Peterson’s book Chapter 11.4 –What is geocoding? –How it was done?
5
Geocoding How it could be done now with new data – street mapping data (such as Google Street View) – land parcel data
7
Geocoding Online geocoding services –www.batchgeo.comwww.batchgeo.com –http://www.gpsvisualizer.com/geocoder/http://www.gpsvisualizer.com/geocoder/ Geocoding using Google Geocoder –Peterson’s Chapter 12.6 –12_18_Geocoder.html
8
Geocoding with Google Maps APIs Google Geocoder example –12_18_Geocoder.html Geocode the 7 metropolitan areas. Use the first city in the areas –Synchronous vs asynchronous –AsynchronousGeocoder.html –GeocodeCities.html
9
Mapping Points as Markers Mapping points from arrays –12_05_Wayne_sites.html Why use “this” instead of “marker” in google.maps.event.addListener() –See what happens when changing “this” to “marker” in the function. Why?
10
Mapping Points as Markers How many infowindow objects are created? How many infowindow objects are used to display the info? –Always the last Infowindow is used! –See 12_05_Wayne_sites_XL_WhichInfowindow.html How to let each marker has and pops its own infowindow? –12_05_Wayne_sites_XL_EachMarkerHasItsOwnInfowind ow.html How to improve the code using just ONE infowindow? –12_05_Wayne_sites_XL_OneInfowindow.html Clean up the code –The markers array never used in the code
11
Content in the Infowindow Some of the population numbers are not displayed Use HTML tag as content instead of simple string – Population: 9461105 –How to change the code? – var contentString=“ Population: ” +pop[i]+“ ”
12
Mapping Points as Markers from XML file Mapping points from XML files –12_06_Mapping_pts_from_XML_file.html Make sure the downloadxml.js library is available to your script –Provides the downloadUrl() function –It’s under the “scripts” folder in the example code Open the XML file and see how variables in the code are associated with the tags in the XML file Why not using “this” in createMarker() in the html? –Using “this” does works
13
Mapping Points as Markers from JSON Mapping points from JSON files –12_07_Mapping_pts_from_JSON_file Make sure the external JS library is available
14
Mapping Points as Markers from KML Mapping points from KML files –12_11_KML_Three_points.html KML is different from XML and JSON –KML has both data and visualization in the file –KML file must be on the Web. No local file! KML documentation –https://developers.google.com/kml/
15
Mapping 7 Metropolitan Statistical Areas (MSA) as Markers—Exercise #7 From arrays From XML file –SevenCities.xml From JSON file –SevenCities.json From KML file –SevenCities.kml
16
Mapping Points Using Graduated Point Symbols Example code –12_21_Circles_US_cities.html
17
Mapping MSA Using Graduated Point Symbols exercise #7 –Mapping metropolitan population from arrays –Mapping metropolitan population from XML files –Mapping metropolitan population from JSON files
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.