mirror of
https://github.com/xuthus83/pigallery2.git
synced 2025-01-14 14:43:17 +08:00
remove debug logging #647
This commit is contained in:
parent
04ce343d9f
commit
bc81dc8a4a
@ -520,13 +520,11 @@ export class GalleryMapLightboxComponent implements OnChanges, OnDestroy {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const pathLayer = this.pathLayersConfigOrdered.find((pl) => {
|
const pathLayer = this.pathLayersConfigOrdered.find((pl) => {
|
||||||
console.log(pl.matchers,pl?.matchers?.findIndex(m => m.test(parsedGPX.name)) );
|
|
||||||
return pl.matchers === null || // null matchers match everything
|
return pl.matchers === null || // null matchers match everything
|
||||||
(parsedGPX.name &&
|
(parsedGPX.name &&
|
||||||
pl.matchers.findIndex(m => m.test(parsedGPX.name)) !== -1);
|
pl.matchers.findIndex(m => m.test(parsedGPX.name)) !== -1);
|
||||||
}) || this.pathLayersConfigOrdered[0];
|
}) || this.pathLayersConfigOrdered[0];
|
||||||
|
|
||||||
console.log(parsedGPX.name, pathLayer.theme.color);
|
|
||||||
if (parsedGPX.path.length !== 0) {
|
if (parsedGPX.path.length !== 0) {
|
||||||
// render the beginning of the path with a marker
|
// render the beginning of the path with a marker
|
||||||
const mkr = marker(parsedGPX.path[0]);
|
const mkr = marker(parsedGPX.path[0]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user