
Note that divs usually take their width from their containingĮlement, and empty divs usually have 0 height. You may need toĪdjust the width and height values based on the browser's screensize and This will expand to fit the size on mobile devices. In the example above, we used CSS to set the height of the map div to Obtaining a reference to this element in the browser's document object model Map DOM Elementsįor the map to display on a web page, we must reserve a spot for it.Ĭommonly, we do this by creating a named div element and Loaded unless you specifically request them. Provide additional functionality to the main Maps JavaScript API but are not Load additional libraries by using the await operator to call importLibrary()įrom within an async function. When loading the Maps JavaScript API via the URL you may optionally When the script is executed, it will call the function specified

This conceptual documentation is designed to let you quickly startĮxploring and developing applications with the Maps JavaScript API. JavaScript programming and object-oriented programming concepts. This documentation is designed for people familiar with Modify using layers and styles, controls and events, and various services and libraries. The Maps JavaScript APIįeatures four basic map types (roadmap, satellite, hybrid, and terrain) which you can Imagery for display on web pages and mobile devices. The Maps JavaScript API lets you customize maps with your own content and You'll always have someone with these roles available to your team. We recommend creating multiple Project Owners and Billing Administrators, so that Select platform: Android iOS JavaScript Before you begin:īefore you start using the Maps JavaScript API, you need a project with a billing account and theĮnabled.
