Chapter 5
Overlays
In the previous chapters I talked about integrating a map into a web app, building controls to manipulate it, and styling a map’s existing content. It is now time to show you how to build your own geographic content and put it on the map. Content may include markers, lines, polygons, and other kinds of layers. These objects, unlike the on-map controls, are tied to one or more sets of geographical coordinates, so they move when you zoom or drag the map. In the Google Maps JavaScript API jargon these objects are called overlays.
In this chapter I illustrate the general methods you can implement to draw, remove, and delete overlays on your maps. Later I will show you three methods to plot points of interest (POIs) on a map ...
Get Pro iOS Geo: Building Apps with Location Based Services 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.