mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-12-02 10:02:12 +00:00
fix some typescript errors
This commit is contained in:
@@ -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