O'Reilly logo

Google Maps by Evangelos Petroutsos

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER
 
8
Feature Annotation: Drawing Shapes on Maps
So far in the book, you have learned how to create map-driven web applications by embedding Google maps in your web pages. You also know how to place markers to identify points of interest on the map and how to write JavaScript functions to react to the basic map events. In this chapter, you learn about a more advanced, and very practical, feature of Google Maps: how to draw basic shapes on top of a map. Using shapes, you can mark features on the map, such as roads, borders of all types (besides administrative borders, which are displayed by default), even networks of lines that represent subway tracks, bus routes, gas pipes, electricity cables, any type of network. In some cases, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required