Addind a few @ts-ignore :( ...
This commit is contained in:
parent
0f9b66b0d4
commit
d0bc9422f3
|
@ -2,6 +2,7 @@ import { Component } from 'solid-js';
|
||||||
|
|
||||||
import CloudUploadIcon from '@suid/icons-material/CloudUpload';
|
import CloudUploadIcon from '@suid/icons-material/CloudUpload';
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
import GPX from '../../lib/gpx-parser-builder/src/gpx';
|
import GPX from '../../lib/gpx-parser-builder/src/gpx';
|
||||||
|
|
||||||
import css from './GpxImport.module.css';
|
import css from './GpxImport.module.css';
|
||||||
|
@ -38,16 +39,6 @@ const GpxImport: Component = () => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
// pushGpx(db, {
|
|
||||||
// gpx,
|
|
||||||
// metadata: {
|
|
||||||
// lastModified: new Date(file.lastModified).toISOString(),
|
|
||||||
// importDate: new Date().toISOString(),
|
|
||||||
// name: file.name,
|
|
||||||
// size: file.size,
|
|
||||||
// type: file.type,
|
|
||||||
// },
|
|
||||||
// });
|
|
||||||
},
|
},
|
||||||
false
|
false
|
||||||
);
|
);
|
||||||
|
|
|
@ -17,7 +17,7 @@ import 'ol/ol.css';
|
||||||
import './Map.css';
|
import './Map.css';
|
||||||
import { Collection } from 'ol';
|
import { Collection } from 'ol';
|
||||||
import { Point } from 'ol/geom';
|
import { Point } from 'ol/geom';
|
||||||
import { Circle, Fill, Stroke, Style, Icon } from 'ol/style';
|
import { Style, Icon } from 'ol/style';
|
||||||
import GetLocation, { getCurrentLocation } from '../get-location';
|
import GetLocation, { getCurrentLocation } from '../get-location';
|
||||||
import ShowLocationIcon from '../get-location/ShowLocationIcon.svg';
|
import ShowLocationIcon from '../get-location/ShowLocationIcon.svg';
|
||||||
import { Back, Forward } from '../back-forward';
|
import { Back, Forward } from '../back-forward';
|
||||||
|
@ -177,8 +177,8 @@ const Map: Component = () => {
|
||||||
setMap(olMap);
|
setMap(olMap);
|
||||||
});
|
});
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
return (
|
return (
|
||||||
|
// @ts-ignore
|
||||||
<div class='ol-map' ref={target}>
|
<div class='ol-map' ref={target}>
|
||||||
<GetLocation />
|
<GetLocation />
|
||||||
<Forward />
|
<Forward />
|
||||||
|
|
Loading…
Reference in New Issue