5. Creating Map Mashups with the Google Maps API

Learn how to use the Google Maps API to create custom map mashups.

In the previous chapter we learned how to create simple custom maps using the My Maps feature. You don’t have to stop there, however; more sophisticated map mashups can be created using the Google Maps API. All you need to know is a little HTML and JavaScript—as well as your location’s latitude and longitude.

The Google Maps API lets you add custom markers, info windows, and overlays to your maps. Each element is added via a distinct line of code, which then uses the Google Maps API to retrieve the appropriate map from Google. Like all of Google’s other development tools, the Google Maps API is free for your noncommercial use—which ...

Get Using Google Maps™ and Google Earth™ 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.