Chapter 6. Google Maps JavaScript Libraries

In this chapter, we will cover:

  • Drawing shapes on the map
  • Calculating the length/area of polylines and polygons
  • Encoding coordinates
  • Searching for and showing nearby places
  • Finding places with the autocomplete option
  • Adding drag zoom to the map
  • Creating custom popups / infoboxes

Introduction

This chapter delves into the additional JavaScript libraries that are part of the Google Maps JavaScript API. These libraries are not added to your application by default when you reference the Google Maps API; however, these can be added manually.

These libraries are classified into the following six categories:

  • drawing
  • geometry
  • places
  • panoramio
  • visualization
  • weather

The last three libraries in the preceding list—panoramio, visualization ...

Get Google Maps JavaScript API Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.