Skip to content

Commit d20553d

Browse files
Update dist folder [skip ci] (#1164)
1 parent 7d71b70 commit d20553d

55 files changed

Lines changed: 1282 additions & 1 deletion

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dist/index.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ <h1>Maps JSAPI Samples</h1>
99
<ul>
1010
<li><a href='/samples/3d-accessibility-features/dist'>3d-accessibility-features</a></li>
1111
<li><a href='/samples/3d-camera-boundary/dist'>3d-camera-boundary</a></li>
12+
<li><a href='/samples/3d-camera-center/dist'>3d-camera-center</a></li>
1213
<li><a href='/samples/3d-camera-to-around/dist'>3d-camera-to-around</a></li>
1314
<li><a href='/samples/3d-clamp-mode/dist'>3d-clamp-mode</a></li>
1415
<li><a href='/samples/3d-label-toggle/dist'>3d-label-toggle</a></li>
@@ -19,7 +20,9 @@ <h1>Maps JSAPI Samples</h1>
1920
<li><a href='/samples/3d-marker-collision-behavior/dist'>3d-marker-collision-behavior</a></li>
2021
<li><a href='/samples/3d-marker-customization/dist'>3d-marker-customization</a></li>
2122
<li><a href='/samples/3d-marker-graphics/dist'>3d-marker-graphics</a></li>
23+
<li><a href='/samples/3d-marker-html/dist'>3d-marker-html</a></li>
2224
<li><a href='/samples/3d-marker-interactive/dist'>3d-marker-interactive</a></li>
25+
<li><a href='/samples/3d-mesh-flatten/dist'>3d-mesh-flatten</a></li>
2326
<li><a href='/samples/3d-model/dist'>3d-model</a></li>
2427
<li><a href='/samples/3d-model-interactive/dist'>3d-model-interactive</a></li>
2528
<li><a href='/samples/3d-places/dist'>3d-places</a></li>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": [
3+
"plugin:@typescript-eslint/recommended"
4+
],
5+
"parser": "@typescript-eslint/parser",
6+
"rules": {
7+
"@typescript-eslint/ban-ts-comment": 0,
8+
"@typescript-eslint/no-this-alias": 1,
9+
"@typescript-eslint/no-empty-function": 1,
10+
"@typescript-eslint/explicit-module-boundary-types": 1,
11+
"@typescript-eslint/no-unused-vars": 1
12+
}
13+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Google Maps JavaScript Sample
2+
3+
## 3d-camera-center
4+
5+
This sample demonstrates how to set the camera center, heading, tilt, and range on a 3D map declaratively.
6+
7+
## Setup
8+
9+
### Before starting run:
10+
11+
`npm i`
12+
13+
### Run an example on a local web server
14+
15+
`cd samples/3d-camera-center`
16+
`npm start`
17+
18+
### Build an individual example
19+
20+
`cd samples/3d-camera-center`
21+
`npm run build`
22+
23+
From `samples/`:
24+
25+
`npm run build --workspace=3d-camera-center/`
26+
27+
### Build all of the examples.
28+
29+
From `samples/`:
30+
31+
`npm run build-all`
32+
33+
### Run lint to check for problems
34+
35+
`cd samples/3d-camera-center`
36+
`npx eslint index.ts`
37+
38+
## Feedback
39+
40+
For feedback related to this sample, please open a new issue on
41+
[GitHub](https://github.com/googlemaps-samples/js-api-samples/issues).
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!doctype html>
2+
<!--
3+
@license
4+
Copyright 2026 Google LLC. All Rights Reserved.
5+
SPDX-License-Identifier: Apache-2.0
6+
-->
7+
<!-- [START maps_3d_camera_center] -->
8+
<html>
9+
<head>
10+
<title>3D Camera Position</title>
11+
12+
<link rel="stylesheet" type="text/css" href="./style.css" />
13+
</head>
14+
<body>
15+
<gmp-map-3d
16+
center="40.7860524,-73.9634983,0"
17+
range="1500"
18+
tilt="70"
19+
heading="-150"
20+
mode="satellite">
21+
<gmp-marker position="40.7860524,-73.9634983" altitude-mode="clamp-to-ground"></gmp-marker>
22+
</gmp-map-3d>
23+
24+
<script
25+
async
26+
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8&v=beta&libraries=maps3d"></script>
27+
</body>
28+
</html>
29+
<!-- [END maps_3d_camera_center] -->
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/*
2+
* @license
3+
* Copyright 2026 Google LLC. All Rights Reserved.
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
// @ts-nocheck
8+
// [START maps_3d_camera_center]
9+
10+
// [END maps_3d_camera_center]
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "@js-api-samples/3d-camera-center",
3+
"version": "1.0.0",
4+
"scripts": {
5+
"build": "tsc && bash ../jsfiddle.sh 3d-camera-center && bash ../app.sh 3d-camera-center && bash ../docs.sh 3d-camera-center && npm run build:vite --workspace=. && bash ../dist.sh 3d-camera-center",
6+
"test": "tsc && npm run build:vite --workspace=.",
7+
"start": "tsc && vite build --base './' && vite",
8+
"build:vite": "vite build --base './'",
9+
"preview": "vite preview"
10+
}
11+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
/*
2+
* @license
3+
* Copyright 2026 Google LLC. All Rights Reserved.
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/* [START maps_3d_camera_center] */
8+
gmp-map-3d {
9+
height: 100%;
10+
}
11+
12+
html,
13+
body {
14+
height: 100%;
15+
margin: 0;
16+
padding: 0;
17+
}
18+
/* [END maps_3d_camera_center] */
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"compilerOptions": {
3+
"module": "esnext",
4+
"target": "esnext",
5+
"strict": true,
6+
"noImplicitAny": false,
7+
"lib": [
8+
"es2015",
9+
"esnext",
10+
"es6",
11+
"dom",
12+
"dom.iterable"
13+
],
14+
"moduleResolution": "Node",
15+
"jsx": "preserve"
16+
}
17+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
gmp-map-3d{height:100%}html,body{height:100%;margin:0;padding:0}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<!doctype html>
2+
<!--
3+
@license
4+
Copyright 2026 Google LLC. All Rights Reserved.
5+
SPDX-License-Identifier: Apache-2.0
6+
-->
7+
<!-- [START maps_3d_camera_center] -->
8+
<html>
9+
<head>
10+
<title>3D Camera Position</title>
11+
12+
<link rel="stylesheet" crossorigin href="./assets/index-DGpxKnq7.css">
13+
</head>
14+
<body>
15+
<gmp-map-3d
16+
center="40.7860524,-73.9634983,0"
17+
range="1500"
18+
tilt="70"
19+
heading="-150"
20+
mode="satellite">
21+
<gmp-marker position="40.7860524,-73.9634983" altitude-mode="clamp-to-ground"></gmp-marker>
22+
</gmp-map-3d>
23+
24+
<script
25+
async
26+
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyA6myHzS10YXdcazAFalmXvDkrYCp5cLc8&v=beta&libraries=maps3d"></script>
27+
</body>
28+
</html>
29+
<!-- [END maps_3d_camera_center] -->

0 commit comments

Comments
 (0)