Skip to content

Commit 7239806

Browse files
authored
fix: Adds SVG resource and changes to use local path. (#974)
* fix: Adds SVG resource and changes to use local path. * Reformat as prettier Looks like VS Code "save on format" does some things differently from Prettier. Restoring Prettier's style as that is how we want things.
1 parent fd3abe7 commit 7239806

File tree

2 files changed

+2
-2
lines changed

2 files changed

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

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ async function init() {
3434
map.append(beachFlagMarker);
3535

3636
// 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';
37+
const glyphImgUrl = new URL('images/192px.svg', import.meta.url);
3938
const glyphSvgPinElement = new PinElement({
4039
background: 'white',
4140
glyphSrc: new URL(glyphImgUrl),

0 commit comments

Comments
 (0)