Skip to main content

Online Map Service Using Google Maps API and Other JavaScript Libraries: An Open Source Method

  • Chapter
  • First Online:
Online Maps with APIs and WebServices

Part of the book series: Lecture Notes in Geoinformation and Cartography ((LNGC))

Abstract

There has seen increasing interest in developing online map services using Google Maps Application Programming Interface (API), Yahoo! Maps API, Microsoft Bing Maps API, Nokia Ovi Maps API, and ESRI ArcGIS API. However, such online map services are mainly “mashups” in nature, meaning that they utilize Maps API as a platform and combine other spatial data from multiple sources to create new services. The objective of this chapter is to demonstrate an online mapping application that focuses not only on the functionality to display points of interest with customized icons and the information associated with them, but also on the sophisticated functionalities for marker clustering, searching, filtering, and tabbed interface that offer the user the capability to manipulate the data, which is lacking in most documented web mapping services. A case study of developing an online map service to display the locations of hundreds of gardens on the Internet for the United States Department of Agriculture (USDA) People’s Garden initiative is presented. Google Maps API, Google Geocoder and other JavaScript libraries such as jQuery, XML, MarkerClusterer, Spry Framework for Ajax, all free and open source, are employed to develop this online map service. It is anticipated that the online map service demonstrated here can be used in most of the web browsers such as Microsoft Internet Explorer (IE) 7.0+, Google Chrome, Mozilla Firefox, and Apple Safari.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 169.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

Download references

Acknowledgement

The author would like to thank three graduate students, Teresa Kysor, Bradley Craddick, and Rachel Byrd, at the Department of Geography, Southern Illinois University Edwardsville for their assistance in compiling the information for over 600 gardens. Their hard work made this project possible.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Shunfu Hu .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2012 Springer-Velag Berlin Heidelberg

About this chapter

Cite this chapter

Hu, S. (2012). Online Map Service Using Google Maps API and Other JavaScript Libraries: An Open Source Method. In: Peterson, M. (eds) Online Maps with APIs and WebServices. Lecture Notes in Geoinformation and Cartography(). Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-27485-5_17

Download citation

Publish with us

Policies and ethics