Skip to content

Commit 8e1bc21

Browse files
authored
fix: Updates to make graphics and assets work properly. (#562)
1 parent 2e4a315 commit 8e1bc21

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ jobs:
7171
(cd samples/ && npm run build --workspace=$workspace)
7272
done
7373
74+
- name: Copy Root Assets to Dist
75+
run: |
76+
if [ -d "assets" ]; then
77+
cp -R assets dist/
78+
fi
79+
7480
- name: Get Deleted Workspaces
7581
id: get_deleted
7682
run: bash samples/find-deleted-subfolders.sh ${{ github.event.before }}

assets/beachflag.png renamed to samples/3d-marker-graphics/images/beachflag.png

File renamed without changes.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function init() {
2020

2121
// A marker with a with a URL pointing to a PNG.
2222
const beachFlagImg = document.createElement('img');
23-
beachFlagImg.src = 'https://maps-docs-team.web.app/assets/beachflag.png';
23+
beachFlagImg.src = new URL('images/beachflag.png', import.meta.url);
2424

2525
const beachFlagMarker = new Marker3DElement({
2626
position: { lat: 37.434, lng: -122.082 },

0 commit comments

Comments
 (0)