Chore: remove import and console log
This commit is contained in:
parent
d16418de91
commit
452ba7d61a
1 changed files with 10 additions and 9 deletions
|
@ -9,7 +9,6 @@ import { IndexedFeatureSource } from "./FeatureSource/FeatureSource"
|
||||||
import OsmObjectDownloader from "./Osm/OsmObjectDownloader"
|
import OsmObjectDownloader from "./Osm/OsmObjectDownloader"
|
||||||
import { Utils } from "../Utils"
|
import { Utils } from "../Utils"
|
||||||
import { Store, UIEventSource } from "./UIEventSource"
|
import { Store, UIEventSource } from "./UIEventSource"
|
||||||
import { selectDefault } from "../Utils/selectDefault"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Metatagging adds various tags to the elements, e.g. lat, lon, surface area, ...
|
* Metatagging adds various tags to the elements, e.g. lat, lon, surface area, ...
|
||||||
|
@ -130,7 +129,7 @@ export default class MetaTagging {
|
||||||
state.featureProperties,
|
state.featureProperties,
|
||||||
{
|
{
|
||||||
includeDates: !lightUpdate,
|
includeDates: !lightUpdate,
|
||||||
evaluateStrict: !lightUpdate,
|
evaluateStrict: !lightUpdate
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -281,7 +280,9 @@ export default class MetaTagging {
|
||||||
atLeastOneFeatureChanged = true
|
atLeastOneFeatureChanged = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.debug("Strictly evaluated ", strictlyEvaluated, " values") // Do not remove this
|
if (strictlyEvaluated > 0) {
|
||||||
|
console.debug("Strictly evaluated ", strictlyEvaluated, " values") // Do not remove this
|
||||||
|
}
|
||||||
return atLeastOneFeatureChanged
|
return atLeastOneFeatureChanged
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -304,7 +305,7 @@ export default class MetaTagging {
|
||||||
return []
|
return []
|
||||||
}
|
}
|
||||||
return [state.perLayer.get(layerId).GetFeaturesWithin(bbox)]
|
return [state.perLayer.get(layerId).GetFeaturesWithin(bbox)]
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -349,8 +350,8 @@ export default class MetaTagging {
|
||||||
if (MetaTagging.errorPrintCount < MetaTagging.stopErrorOutputAt) {
|
if (MetaTagging.errorPrintCount < MetaTagging.stopErrorOutputAt) {
|
||||||
console.warn(
|
console.warn(
|
||||||
"Could not calculate a " +
|
"Could not calculate a " +
|
||||||
(isStrict ? "strict " : "") +
|
(isStrict ? "strict " : "") +
|
||||||
"calculated tag for key",
|
"calculated tag for key",
|
||||||
key,
|
key,
|
||||||
"for feature",
|
"for feature",
|
||||||
feat.properties.id,
|
feat.properties.id,
|
||||||
|
@ -358,9 +359,9 @@ export default class MetaTagging {
|
||||||
code,
|
code,
|
||||||
"(in layer",
|
"(in layer",
|
||||||
layerId +
|
layerId +
|
||||||
") due to \n" +
|
") due to \n" +
|
||||||
e +
|
e +
|
||||||
"\n. Are you the theme creator? Doublecheck your code. Note that the metatags might not be stable on new features",
|
"\n. Are you the theme creator? Doublecheck your code. Note that the metatags might not be stable on new features",
|
||||||
e,
|
e,
|
||||||
e.stack,
|
e.stack,
|
||||||
{ feat }
|
{ feat }
|
||||||
|
|
Loading…
Reference in a new issue