forked from MapComplete/MapComplete
Chore: remove obsolete logging commands
This commit is contained in:
parent
7321004c19
commit
c54424d6f7
3 changed files with 1 additions and 7 deletions
|
@ -61,7 +61,6 @@ export default class OsmFeatureSource extends FeatureSourceMerger {
|
||||||
|
|
||||||
private async loadData(bbox: BBox) {
|
private async loadData(bbox: BBox) {
|
||||||
if (this.isActive?.data === false) {
|
if (this.isActive?.data === false) {
|
||||||
console.log("OsmFeatureSource: not triggering: inactive")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,7 +132,6 @@ export default class OsmFeatureSource extends FeatureSourceMerger {
|
||||||
}
|
}
|
||||||
|
|
||||||
private async LoadTile(z: number, x: number, y: number): Promise<void> {
|
private async LoadTile(z: number, x: number, y: number): Promise<void> {
|
||||||
console.log("OsmFeatureSource: loading ", z, x, y, "from", this._backend)
|
|
||||||
if (z >= 22) {
|
if (z >= 22) {
|
||||||
throw "This is an absurd high zoom level"
|
throw "This is an absurd high zoom level"
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,7 +81,6 @@ export default class OverpassFeatureSource implements FeatureSource {
|
||||||
*/
|
*/
|
||||||
private async updateAsyncIfNeeded(): Promise<void> {
|
private async updateAsyncIfNeeded(): Promise<void> {
|
||||||
if (!this._isActive?.data) {
|
if (!this._isActive?.data) {
|
||||||
console.log("OverpassFeatureSource: not triggering as not active")
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.runningQuery.data) {
|
if (this.runningQuery.data) {
|
||||||
|
|
|
@ -44,7 +44,6 @@ class PointRenderingLayer {
|
||||||
this._onClick = onClick
|
this._onClick = onClick
|
||||||
this._selectedElement = selectedElement
|
this._selectedElement = selectedElement
|
||||||
const self = this
|
const self = this
|
||||||
|
|
||||||
features.features.addCallbackAndRunD((features) => self.updateFeatures(features))
|
features.features.addCallbackAndRunD((features) => self.updateFeatures(features))
|
||||||
visibility?.addCallbackAndRunD((visible) => {
|
visibility?.addCallbackAndRunD((visible) => {
|
||||||
if (visible === true && self._dirty) {
|
if (visible === true && self._dirty) {
|
||||||
|
@ -155,7 +154,6 @@ class PointRenderingLayer {
|
||||||
el.addEventListener("click", function (ev) {
|
el.addEventListener("click", function (ev) {
|
||||||
ev.preventDefault()
|
ev.preventDefault()
|
||||||
self._onClick(feature)
|
self._onClick(feature)
|
||||||
console.log("Got click:", feature)
|
|
||||||
// Workaround to signal the MapLibreAdaptor to ignore this click
|
// Workaround to signal the MapLibreAdaptor to ignore this click
|
||||||
ev["consumed"] = true
|
ev["consumed"] = true
|
||||||
})
|
})
|
||||||
|
@ -333,7 +331,6 @@ class LineRenderingLayer {
|
||||||
})
|
})
|
||||||
if (this._onClick) {
|
if (this._onClick) {
|
||||||
map.on("click", polylayer, (e) => {
|
map.on("click", polylayer, (e) => {
|
||||||
console.log("Got polylayer click:", e)
|
|
||||||
// polygon-layer-listener
|
// polygon-layer-listener
|
||||||
if (e.originalEvent["consumed"]) {
|
if (e.originalEvent["consumed"]) {
|
||||||
// This is a polygon beneath a marker, we can ignore it
|
// This is a polygon beneath a marker, we can ignore it
|
||||||
|
@ -351,7 +348,7 @@ class LineRenderingLayer {
|
||||||
map.setLayoutProperty(polylayer, "visibility", visible ? "visible" : "none")
|
map.setLayoutProperty(polylayer, "visibility", visible ? "visible" : "none")
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn(
|
console.warn(
|
||||||
"Error while setting visiblity of layers ",
|
"Error while setting visibility of layers ",
|
||||||
linelayer,
|
linelayer,
|
||||||
polylayer,
|
polylayer,
|
||||||
e
|
e
|
||||||
|
|
Loading…
Add table
Reference in a new issue