mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-19 17:22:12 +00:00
fix some typescript errors
This commit is contained in:
1 parent
bce7b5984f
commit
16023b0688
13 files changed
+73
-44
No files matched your search
@@ -156,7 +156,7 @@ export class GPXLayer {
|
||||
}
|
||||
|
||||
try {
|
||||
let source = _map.getSource(this.fileId);
|
||||
let source = _map.getSource(this.fileId) as mapboxgl.GeoJSONSource | undefined;
|
||||
if (source) {
|
||||
source.setData(this.getGeoJSON());
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user