mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
Merge pull request #456 from zigmhount/gpx_wpt_mappoints
Gpx wpt mappoints with infinite loop fix
This commit is contained in:
commit
ec8b287c9f
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user