![]() ![]() For this reason, you mustĪlways set a height on the explicitly. 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |