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, ...
Get Google Maps 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.