Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions samples/web-components-markers/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!doctype html>
<!DOCTYPE html>
<!--
@license
Copyright 2025 Google LLC. All Rights Reserved.
Expand All @@ -8,8 +8,17 @@
<html>
<head>
<title>Add a Map with Markers using HTML</title>

<link rel="stylesheet" type="text/css" href="./style.css" />
<style>
gmp-map {
height: 100%;
}
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
</style>
<script type="module" src="./index.js"></script>
<script
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8&libraries=maps,marker&v=weekly"
Expand Down
18 changes: 1 addition & 17 deletions samples/web-components-markers/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,5 @@
* SPDX-License-Identifier: Apache-2.0
*/
/* [START maps_web_components_markers] */
/*
* Always set the map height explicitly to define the size of the div element
* that contains the map.
*/
gmp-map {
height: 100%;
}

/*
* Optional: Makes the sample page fill the window.
*/
html,
body {
height: 100%;
margin: 0;
padding: 0;
}
/* Note: This CSS file is intentionally blank. */
/* [END maps_web_components_markers] */