Chapter 3. Adding Vector Layers

In this chapter, we will cover:

  • Adding markers to maps
  • Adding popups to markers or maps
  • Adding lines to maps
  • Adding polygons to maps
  • Adding circles/rectangles to maps
  • Adding animated lines to maps
  • Adding the KML/GeoRSS layer
  • Adding GeoJSON to the Google Maps JavaScript API
  • Adding WKT to the Google Maps JavaScript API

Introduction

This chapter is about vector layers, which are completely different from raster layers. This chapter gives you the most common and important recipes that you may need while working with the Google Maps JavaScript API.

In the GIS world, both the vector and raster layers are used in different cases. Vectors are used for representing the Earth's features in most cases. For example, Points of Interest ...

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.