1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2024-11-30 09:07:06 +02:00

Merge pull request #456 from zigmhount/gpx_wpt_mappoints

Gpx wpt mappoints with infinite loop fix
This commit is contained in:
Patrik J. Braun 2022-03-11 23:51:28 +01:00 committed by GitHub
commit ec8b287c9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -396,7 +396,7 @@ export class GalleryMapLightboxComponent implements OnChanges {
this.mapLayersControlOption.overlays.Paths.addLayer(polyline(path as LatLng[]));
}
if (wpoints.length !== 0) {
wpoints_loop: for (let wpt_i = 0; i < wpoints.length; wpt_i++) {
wpoints_loop: for (let wpt_i = 0; wpt_i < wpoints.length; wpt_i++) {
if (wpoints[wpt_i] === undefined) {
continue wpoints_loop;
}