This commit is contained in:
2025-10-20 17:51:43 +09:00
parent 80517cd7cc
commit 6d31e1f37a
2 changed files with 3 additions and 2 deletions

View File

@ -148,8 +148,6 @@ export default function FolderViewer() {
const handleFileChange = (e: React.ChangeEvent<HTMLInputElement>) => {
if (e.target.files) {
// do what Mantine's onChange did
console.log("Selected files:", Array.from(e.target.files));
handleFileInput(Array.from(e.target.files))
}
};

View File

@ -208,6 +208,8 @@ const MapComponent = ({
//if (snap.current) map?.current?.removeInteraction(snap.current)
addInteractions(id)
} else {
//map?.getInteractions().clear()
//addInteractions(id)
if (translate) map?.removeInteraction(translate)
if (draw) map?.removeInteraction(draw)
if (snap) map?.removeInteraction(snap)
@ -217,6 +219,7 @@ const MapComponent = ({
// Satellite tiles setting
useEffect(() => {
console.log("Setting satLayer", satMapsProvider)
if (satLayer) {
if (satMapsProvider === 'google') {
satLayer.setSource(googleMapsSatelliteSource)