Skip to content

Commit 72398fd

Browse files
committed
Remove the google maps 3D
It doesn't work any more as a basemap. Something like this would work this.map = new Map({ basemap: this.basemaps.Satellite, ground: { layers: [this.elevationLayer] }, layers: [google3DTilesLayer] }); Disabling for now
1 parent fe4a96e commit 72398fd

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

apps/fxc-front/src/app/components/3d/map3d-element.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import Point from '@arcgis/core/geometry/Point';
1212
import BaseElevationLayer from '@arcgis/core/layers/BaseElevationLayer';
1313
import ElevationLayer from '@arcgis/core/layers/ElevationLayer';
1414
import GraphicsLayer from '@arcgis/core/layers/GraphicsLayer';
15-
import IntegratedMesh3DTilesLayer from '@arcgis/core/layers/IntegratedMesh3DTilesLayer.js';
1615
import SceneLayer from '@arcgis/core/layers/SceneLayer';
1716
import TileLayer from '@arcgis/core/layers/TileLayer';
1817
import VectorTileLayer from '@arcgis/core/layers/VectorTileLayer';
@@ -32,7 +31,6 @@ import { when } from 'lit/directives/when.js';
3231
import type { UnsubscribeHandle } from 'micro-typed-events';
3332
import { connect } from 'pwa-helpers';
3433

35-
import { getApiKeyAndHost } from '../../apikey';
3634
import * as msg from '../../logic/messages';
3735
import { setApiLoading, setTimeSec, setView3d } from '../../redux/app-slice';
3836
import { setCurrentLiveId } from '../../redux/live-track-slice';
@@ -69,7 +67,6 @@ export class Map3dElement extends connect(store)(LitElement) {
6967
private airspace?: Airspace3dElement;
7068
private basemaps: Record<string, string | Basemap | null> = {
7169
Satellite: null,
72-
Google: null,
7370
OpenTopoMap: null,
7471
'IGN France': null,
7572
Topo: 'topo-3d',
@@ -331,19 +328,6 @@ export class Map3dElement extends connect(store)(LitElement) {
331328
title: 'IGN',
332329
id: 'ignfr',
333330
});
334-
335-
this.basemaps.Google = new Basemap({
336-
baseLayers: [
337-
new IntegratedMesh3DTilesLayer({
338-
url: 'https://tile.googleapis.com/v1/3dtiles/root.json',
339-
title: 'Google tiles',
340-
customParameters: { key: getApiKeyAndHost('GMAPS').key },
341-
}),
342-
],
343-
referenceLayers: [labelLayer],
344-
title: 'google',
345-
id: 'google',
346-
});
347331
}
348332

349333
private createLighting() {

0 commit comments

Comments
 (0)