Skip to content

Commit

Permalink
add title to iframe video and restore interactive map hilight
Browse files Browse the repository at this point in the history
  • Loading branch information
yileifeng committed Dec 19, 2024
1 parent f12d40f commit b92e8da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/panels/interactive-map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ const handlePoint = (id: string, oid: number, layerIndex?: number) => {
// Add the new highlight in.
const g = await targetLayer.getGraphic(oid, { getGeom: true, getStyle: true });
await instance.geo.map.zoomMapTo(g.geometry, 4622324.434309, true, props.config.duration || undefined);
await hl.addHilight(g);
});
});
};
Expand Down
1 change: 1 addition & 0 deletions src/components/panels/video-panel.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<template v-if="config.videoType === 'YouTube'">
<iframe
class="media-player"
:title="config.title"
:src="config.src"
:height="config.height ? `${config.height}` : '500px'"
allowfullscreen
Expand Down

0 comments on commit b92e8da

Please sign in to comment.