Hiding (through CSS) overlay popups when not shown (otherwise they are just located under the map and show up when the map is moved before tiles are loaded.

This commit is contained in:
Eric van der Vlist 2023-02-06 09:24:57 +01:00
parent e528db9fad
commit 86427d5ff9
2 changed files with 5 additions and 1 deletions

View File

@ -7,6 +7,8 @@ import { useI18n } from '@solid-primitives/i18n';
import proj4 from 'proj4'; import proj4 from 'proj4';
import style from './Finder.module.css'; import style from './Finder.module.css';
import './finder.css';
import { Box, Button, IconButton, TextField } from '@suid/material'; import { Box, Button, IconButton, TextField } from '@suid/material';
import Dialog from '../dialog'; import Dialog from '../dialog';
import { getMap, getState } from '../map'; import { getMap, getState } from '../map';
@ -168,5 +170,4 @@ const Finder: Component<Props> = (props) => {
</> </>
); );
}; };
export default Finder; export default Finder;

View File

@ -0,0 +1,3 @@
.ol-map .ol_popup {
visibility: hidden;
}