Closed MomoKiller closed 1 month ago
<template> <div id='gMap'></div> </template>
// Idle this.gmap = this.chart.getModel().getComponent('gmap').getGoogleMap() this.gmap.addListener('idle', () => { const domGmstyle = document.getElementsByClassName('gm-style')[0] as HTMLDivElement const domGmwrap = document.getElementById('gMap') as HTMLDivElement if(domGmstyle.offsetHeight === window.innerHeight && domGmstyle.offsetWidth === window.innerWidth ){ // Fullscreen domGmwrap.style.position = 'fixed' this.chart.resize() } })
Could it be fixed by #15?
It fixed.