Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add DOM elements for sync with puppeteer browser automation - #minor #1035

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,6 @@ function refreshPageTitle() {
</div>
</template>

<!-- this style is not scoped in order to enable the distribution of bootstrap's
<!-- touch this style is not scoped in order to enable the distribution of bootstrap's
CSS rules to the whole app (otherwise it would be limited to this component) -->
<style lang="scss" src="./scss/main.scss" />
6 changes: 6 additions & 0 deletions src/modules/map/components/openlayers/OpenLayersMap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ map.once('rendercomplete', () => {
store.dispatch('mapModuleReady', dispatcher)
log.info('Openlayer map rendered')
})
map.once('loadend', () => {
const span = document.createElement('span')
span.id = 'openlayer_complete'
document.body.appendChild(span)
log.info('openlayer complete')
})

onMounted(() => {
map.setTarget(mapElement.value)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ const layer = new MapLibreLayer({
id: layerId.value,
opacity: opacity.value,
})
layer.once('load', () => {
const span = document.createElement('span')
span.id = 'maplibre_complete'
document.body.appendChild(span)

console.log('maplibre complete')
})
setMapLibreStyle(styleUrl.value)

const olMap = inject('olMap')
Expand Down
Loading