Skip to content

Commit 5e7933c

Browse files
Update dist folder [skip ci] (#977)
1 parent 1156d5b commit 5e7933c

File tree

14 files changed

+2911
-157
lines changed

14 files changed

+2911
-157
lines changed

dist/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ <h1>Maps JSAPI Samples</h1>
5656
<li><a href='/samples/deckgl-kml/dist'>deckgl-kml</a></li>
5757
<li><a href='/samples/deckgl-kml-updated/dist'>deckgl-kml-updated</a></li>
5858
<li><a href='/samples/deckgl-polygon/dist'>deckgl-polygon</a></li>
59+
<li><a href='/samples/js-api-loader-map/dist'>js-api-loader-map</a></li>
5960
<li><a href='/samples/layer-data-quakes-red/dist'>layer-data-quakes-red</a></li>
6061
<li><a href='/samples/layer-data-quakes-simple/dist'>layer-data-quakes-simple</a></li>
6162
<li><a href='/samples/layer-data-simple/dist'>layer-data-simple</a></li>

dist/samples/js-api-loader-map/dist/assets/index-CtsZJvLO.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
html,body{height:calc(100vh - 100px);padding:0;font-family:Arial,Helvetica,sans-serif}#map{height:calc(100vh - 100px)}h1{height:30px}@media screen and (max-width: 600px){h1{font-size:1.2em}}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!doctype html>
2+
<!--
3+
@license
4+
Copyright 2019 Google LLC. All Rights Reserved.
5+
SPDX-License-Identifier: Apache-2.0
6+
-->
7+
<!-- [START maps_js_api_loader_map] -->
8+
<html>
9+
<head>
10+
<title>@googlemaps/js-api-loader map</title>
11+
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
12+
<meta charset="utf-8">
13+
<script type="module" crossorigin src="./assets/index-CtsZJvLO.js"></script>
14+
<link rel="stylesheet" crossorigin href="./assets/index-Wl6o4y82.css">
15+
</head>
16+
<body>
17+
<h1>@googlemaps/js-api-loader map</h1>
18+
<div id="map"></div>
19+
</body>
20+
</html>
21+
<!-- [END maps_js_api_loader_map] -->
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!doctype html>
2+
<!--
3+
@license
4+
Copyright 2019 Google LLC. All Rights Reserved.
5+
SPDX-License-Identifier: Apache-2.0
6+
-->
7+
<!-- [START maps_js_api_loader_map] -->
8+
<html>
9+
<head>
10+
<title>@googlemaps/js-api-loader map</title>
11+
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
12+
<meta charset="utf-8">
13+
<link rel="stylesheet" type="text/css" href="./style.css" />
14+
<script type="module" src="./index.js"></script>
15+
</head>
16+
<body>
17+
<h1>@googlemaps/js-api-loader map</h1>
18+
<div id="map"></div>
19+
</body>
20+
</html>
21+
<!-- [END maps_js_api_loader_map] -->
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* @license
3+
* Copyright 2019 Google LLC. All Rights Reserved.
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
// [START maps_js_api_loader_map]
7+
import { setOptions, importLibrary } from "@googlemaps/js-api-loader";
8+
const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8";
9+
async function initMap() {
10+
setOptions({ key: API_KEY });
11+
const { Map } = await importLibrary("maps");
12+
const mapOptions = {
13+
center: { lat: 48.8566, lng: 2.3522 },
14+
zoom: 3,
15+
};
16+
const map = new Map(document.getElementById("map"), mapOptions);
17+
}
18+
initMap();
19+
// [END maps_js_api_loader_map]
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
/**
2+
* @license
3+
* Copyright 2019 Google LLC. All Rights Reserved.
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
// [START maps_js_api_loader_map]
8+
import { setOptions, importLibrary } from "@googlemaps/js-api-loader";
9+
10+
const API_KEY = "AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8";
11+
12+
async function initMap(): Promise<void> {
13+
setOptions({ key: API_KEY });
14+
15+
const { Map } = await importLibrary("maps") as google.maps.MapsLibrary;
16+
17+
const mapOptions = {
18+
center: { lat: 48.8566, lng: 2.3522 },
19+
zoom: 3,
20+
};
21+
22+
const map = new Map(document.getElementById("map") as HTMLElement, mapOptions);
23+
24+
}
25+
26+
initMap();
27+
// [END maps_js_api_loader_map]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/**
2+
* @license
3+
* Copyright 2019 Google LLC. All Rights Reserved.
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
/* [START maps_js_api_loader_map] */
7+
html, body {
8+
height: calc(100vh - 100px);
9+
padding: 0;
10+
font-family:Arial, Helvetica, sans-serif ;
11+
}
12+
13+
#map {
14+
height: calc(100vh - 100px);
15+
}
16+
17+
h1{
18+
height:30px
19+
}
20+
21+
@media screen and (max-width: 600px) {
22+
h1 {
23+
font-size: 1.2em;
24+
}
25+
}
26+
/* [END maps_js_api_loader_map] */
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* @license
3+
* Copyright 2019 Google LLC. All Rights Reserved.
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
html, body {
8+
height: calc(100vh - 100px);
9+
padding: 0;
10+
font-family:Arial, Helvetica, sans-serif ;
11+
}
12+
13+
#map {
14+
height: calc(100vh - 100px);
15+
}
16+
17+
h1{
18+
height:30px
19+
}
20+
21+
@media screen and (max-width: 600px) {
22+
h1 {
23+
font-size: 1.2em;
24+
}
25+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
name: js-api-loader-map
2+
authors:
3+
- Geo Developer IX Documentation Team
4+
tags:
5+
- google maps
6+
load_type: h
7+
description: Sample code supporting Google Maps Platform JavaScript API documentation.

0 commit comments

Comments
 (0)