File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
samples/3d-marker-graphics Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 77// @ts -nocheck
88// [START maps_3d_marker_graphics]
99async 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 ) ,
You can’t perform that action at this time.
0 commit comments