Skip to content

Commit d9cb271

Browse files
committed
fix: Adds SVG resource and changes to use local path.
1 parent fd3abe7 commit d9cb271

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed
Lines changed: 1 addition & 0 deletions
Loading

samples/3d-marker-graphics/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
// @ts-nocheck
88
// [START maps_3d_marker_graphics]
99
async function init() {
10-
const { Map3DElement, Marker3DElement } =
11-
await google.maps.importLibrary('maps3d');
10+
const { Map3DElement, Marker3DElement } = await google.maps.importLibrary(
11+
'maps3d'
12+
);
1213
const { PinElement } = await google.maps.importLibrary('marker');
1314
const { Place } = await google.maps.importLibrary('places');
1415

@@ -34,8 +35,7 @@ async function init() {
3435
map.append(beachFlagMarker);
3536

3637
// A marker with a custom SVG glyph and white background.
37-
const glyphImgUrl =
38-
'https://www.gstatic.com/images/branding/productlogos/maps/v7/192px.svg';
38+
const glyphImgUrl = new URL('images/192px.svg', import.meta.url);
3939
const glyphSvgPinElement = new PinElement({
4040
background: 'white',
4141
glyphSrc: new URL(glyphImgUrl),

0 commit comments

Comments
 (0)