Mapping Fundamentals Appendix A Nate Bowers Spring 2010
Latitude and Longitude Effective use of Lat/Long is key to making worthwhile Google Maps Decimal Degrees W DMS –degrees/minutes/seconds -96° 0’ 46” ° 0’ 46” W Recognize when a conversion needs to be made
DMS Conversion Converting from DMS to Decimal Converting from decimal into DMS Google Conversion Online Tools
Coordinate Precision
Use JavaScript to maintain precision: – The toFixed built-in function “converts numbers to strings with the given precision” (p.315). – The toUrlValue “creates a string containing the coordinates, separated by commas and formatted with the given precision” (p.315).
Calculating Distance The curvature of the Earth complicates true distance. The distancefrom built-in function in JavaScript can help:
Equirectangular Map Projections
Google Maps uses a Mercator Projection – Nothing >85° N/S – Distortion is reduced over small latitude ranges – The higher the zoom, the lesser the distortion Mercator is a square map – Simplifies conversions between pixels and Lat/Lng – Simplifies tiling ZoomTiles ,042 64, , , , ,048, ,194, ,777, ,108, ,435, ,073,741, ,294,967, ,179,869,184
2 miles
Sources Udell, Sterling. Beginning Google Maps Mashups with Mapplets, KML, and GeoRSS. 2009, New York Wikipedia – d_map_equirectangular_proj.svg d_map_equirectangular_proj.svg – d_map_Mercator_proj.svg d_map_Mercator_proj.svg Google Maps –