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:
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…
Reference in New Issue
Block a user