CHAPTER
 
3
Web Page Scripting: An Introduction to JavaScript
The Google Maps API is a JavaScript library that exposes all the functionality required to embed a map in a HTML page and manipulate the map from within the page’s script. The API exposes its functionality through a number of objects, including the Map object that represents the map on the page, the Marker object that represents the markers you place on the map, and many more. To take advantage of the API, you must provide scripts that manipulate the objects exposed by the API and these scripts must be written in JavaScript. This is not a limitation of the API; JavaScript is the only language that runs in the context of the browser and it’s supported by all browsers. The API ...

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.