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
10 changes: 7 additions & 3 deletions dist/samples/3d-accessibility-features/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

// [START maps_3d_accessibility_features]
async function initMap() {
const { Map3DElement, Marker3DInteractiveElement, PopoverElement } =
await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const [
{ Map3DElement, Marker3DInteractiveElement, PopoverElement },
{ PinElement },
] = await Promise.all([
google.maps.importLibrary('maps3d'),
google.maps.importLibrary('marker'),
]);

const map = new Map3DElement({
center: { lat: 34.8405, lng: -111.7909, altitude: 1322.7 },
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

2 changes: 1 addition & 1 deletion dist/samples/3d-accessibility-features/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<head>
<title>Map</title>

<script type="module" crossorigin src="./assets/index-y43h04GL.js"></script>
<script type="module" crossorigin src="./assets/index-CAWeQ9mC.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BVXE32j3.css">
</head>
<body>
Expand Down
10 changes: 7 additions & 3 deletions dist/samples/3d-accessibility-features/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@

// [START maps_3d_accessibility_features]
async function initMap() {
const { Map3DElement, Marker3DInteractiveElement, PopoverElement } =
await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const [
{ Map3DElement, Marker3DInteractiveElement, PopoverElement },
{ PinElement },
] = await Promise.all([
google.maps.importLibrary('maps3d'),
google.maps.importLibrary('marker'),
]);

const map = new Map3DElement({
center: { lat: 34.8405, lng: -111.7909, altitude: 1322.7 },
Expand Down
10 changes: 7 additions & 3 deletions dist/samples/3d-accessibility-features/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@

// [START maps_3d_accessibility_features]
async function initMap() {
const { Map3DElement, Marker3DInteractiveElement, PopoverElement } =
await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const [
{ Map3DElement, Marker3DInteractiveElement, PopoverElement },
{ PinElement },
] = await Promise.all([
google.maps.importLibrary('maps3d'),
google.maps.importLibrary('marker'),
]);

const map = new Map3DElement({
center: { lat: 34.8405, lng: -111.7909, altitude: 1322.7 },
Expand Down
10 changes: 7 additions & 3 deletions dist/samples/3d-accessibility-features/jsfiddle/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@
*/

async function initMap() {
const { Map3DElement, Marker3DInteractiveElement, PopoverElement } =
await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const [
{ Map3DElement, Marker3DInteractiveElement, PopoverElement },
{ PinElement },
] = await Promise.all([
google.maps.importLibrary('maps3d'),
google.maps.importLibrary('marker'),
]);

const map = new Map3DElement({
center: { lat: 34.8405, lng: -111.7909, altitude: 1322.7 },
Expand Down
6 changes: 4 additions & 2 deletions dist/samples/3d-coverage-map/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ const placeAutocomplete = document.querySelector('gmp-place-autocomplete')!;

async function initMap() {
// Request needed libraries.
await google.maps.importLibrary('maps');
await google.maps.importLibrary('places');
await Promise.all([
google.maps.importLibrary('maps'),
google.maps.importLibrary('places'),
]);

// Get the inner map from the map element.
const innerMap = mapElement.innerMap;
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/samples/3d-coverage-map/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<head>
<title>Map</title>

<script type="module" crossorigin src="./assets/index-C4Z3r0kD.js"></script>
<script type="module" crossorigin src="./assets/index-Dhlabv1v.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CK-u5jrc.css">
</head>
<body>
Expand Down
6 changes: 4 additions & 2 deletions dist/samples/3d-coverage-map/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ const placeAutocomplete = document.querySelector('gmp-place-autocomplete');

async function initMap() {
// Request needed libraries.
await google.maps.importLibrary('maps');
await google.maps.importLibrary('places');
await Promise.all([
google.maps.importLibrary('maps'),
google.maps.importLibrary('places'),
]);

// Get the inner map from the map element.
const innerMap = mapElement.innerMap;
Expand Down
6 changes: 4 additions & 2 deletions dist/samples/3d-coverage-map/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ const placeAutocomplete = document.querySelector('gmp-place-autocomplete')!;

async function initMap() {
// Request needed libraries.
await google.maps.importLibrary('maps');
await google.maps.importLibrary('places');
await Promise.all([
google.maps.importLibrary('maps'),
google.maps.importLibrary('places'),
]);

// Get the inner map from the map element.
const innerMap = mapElement.innerMap;
Expand Down
6 changes: 4 additions & 2 deletions dist/samples/3d-coverage-map/jsfiddle/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ const placeAutocomplete = document.querySelector('gmp-place-autocomplete');

async function initMap() {
// Request needed libraries.
await google.maps.importLibrary('maps');
await google.maps.importLibrary('places');
await Promise.all([
google.maps.importLibrary('maps'),
google.maps.importLibrary('places'),
]);

// Get the inner map from the map element.
const innerMap = mapElement.innerMap;
Expand Down
8 changes: 5 additions & 3 deletions dist/samples/3d-marker-customization/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

// [START maps_3d_marker_customization]
async function init() {
const { Map3DElement, Marker3DElement } =
await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const [{ Map3DElement, Marker3DElement }, { PinElement }] =
await Promise.all([
google.maps.importLibrary('maps3d'),
google.maps.importLibrary('marker'),
]);

const map = new Map3DElement({
center: { lat: 37.4176, lng: -122.02, altitude: 0 },
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

2 changes: 1 addition & 1 deletion dist/samples/3d-marker-customization/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<head>
<title>Map</title>

<script type="module" crossorigin src="./assets/index-u7E6mvyA.js"></script>
<script type="module" crossorigin src="./assets/index-F8rmfRi2.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-BVXE32j3.css">
</head>
<body>
Expand Down
8 changes: 5 additions & 3 deletions dist/samples/3d-marker-customization/docs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@

// [START maps_3d_marker_customization]
async function init() {
const { Map3DElement, Marker3DElement } =
await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const [{ Map3DElement, Marker3DElement }, { PinElement }] =
await Promise.all([
google.maps.importLibrary('maps3d'),
google.maps.importLibrary('marker'),
]);

const map = new Map3DElement({
center: { lat: 37.4176, lng: -122.02, altitude: 0 },
Expand Down
8 changes: 5 additions & 3 deletions dist/samples/3d-marker-customization/docs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

// [START maps_3d_marker_customization]
async function init() {
const { Map3DElement, Marker3DElement } =
await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const [{ Map3DElement, Marker3DElement }, { PinElement }] =
await Promise.all([
google.maps.importLibrary('maps3d'),
google.maps.importLibrary('marker'),
]);

const map = new Map3DElement({
center: { lat: 37.4176, lng: -122.02, altitude: 0 },
Expand Down
8 changes: 5 additions & 3 deletions dist/samples/3d-marker-customization/jsfiddle/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@
*/

async function init() {
const { Map3DElement, Marker3DElement } =
await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const [{ Map3DElement, Marker3DElement }, { PinElement }] =
await Promise.all([
google.maps.importLibrary('maps3d'),
google.maps.importLibrary('marker'),
]);

const map = new Map3DElement({
center: { lat: 37.4176, lng: -122.02, altitude: 0 },
Expand Down
10 changes: 6 additions & 4 deletions dist/samples/3d-marker-graphics/app/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@

// [START maps_3d_marker_graphics]
async function init() {
const { Map3DElement, Marker3DElement } =
await google.maps.importLibrary('maps3d');
const { PinElement } = await google.maps.importLibrary('marker');
const { Place } = await google.maps.importLibrary('places');
const [{ Map3DElement, Marker3DElement }, { PinElement }, { Place }] =
await Promise.all([
google.maps.importLibrary('maps3d'),
google.maps.importLibrary('marker'),
google.maps.importLibrary('places'),
]);

const map = new Map3DElement({
center: { lat: 37.426, lng: -122.082, altitude: 18 },
Expand Down
Loading
Loading