O'Reilly logo

Google Maps JavaScript API Cookbook by Balkan Uraz, Alper Dincer

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

Adding popups to markers or maps

Almost every mapping application has an ability to display information related to the features shown on it. Showing all the related information on the map at the same time is an impossible mission for a developer and it is also useless for users. Instead of showing all the information on the map, developers add interaction to points, polylines, or polygons that show the related information with different techniques such as popups or info windows.

Popups or info windows can hold anything that can be written in HTML tags, such as pictures, videos, or standard text.

You will see something like the following screenshot, if you get through to the end of the recipe:

Getting ready

This recipe is the modified version of the ...

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