CHAPTER
 
7
Markers: Identifying Locations on the Map
You have learned how to embed maps in your web pages, how to use the basic objects of the Google Maps API, and how to program the common map events to build interactive mapping applications. Now you’re ready to create practical mapping applications by placing data on your maps. You’ll start with point data, which are represented by markers; in the following chapter, you’ll move to shapes.
A marker is an icon that identifies a location on the map. The default icon is a drop-shaped image pinned to a location, but you can assign custom icons to your markers. Google provides a few more images for markers, including colored pushpins, as well as symbols (airports, metro stations, hotels, ...

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.