forked from MapComplete/MapComplete
Fix non-appearing new icon, remove debug outputs
This commit is contained in:
parent
7dfbe5f4b4
commit
90fc0e0840
7 changed files with 15 additions and 13 deletions
|
@ -287,14 +287,14 @@ export default class FeaturePipeline {
|
|||
|
||||
// Also load points/lines that are newly added.
|
||||
const newGeometry = new NewGeometryFromChangesFeatureSource(state.changes, state.osmConnection._oauth_config.url)
|
||||
newGeometry.features.addCallbackAndRun(geometries => {
|
||||
console.debug("New geometries are:", geometries)
|
||||
})
|
||||
|
||||
new RegisteringAllFromFeatureSourceActor(newGeometry, state.allElements)
|
||||
// A NewGeometryFromChangesFeatureSource does not split per layer, so we do this next
|
||||
new PerLayerFeatureSourceSplitter(state.filteredLayers,
|
||||
(perLayer) => {
|
||||
if(perLayer.features.data.length === 0){
|
||||
return
|
||||
}
|
||||
|
||||
// We don't bother to split them over tiles as it'll contain little features by default, so we simply add them like this
|
||||
perLayerHierarchy.get(perLayer.layer.layerDef.id).registerTile(perLayer)
|
||||
// AT last, we always apply the metatags whenever possible
|
||||
|
@ -499,7 +499,9 @@ export default class FeaturePipeline {
|
|||
self.applyMetaTags(tile, <any> this.state)
|
||||
})
|
||||
})
|
||||
this.applyMetaTags(this.state.currentView, <any> this.state)
|
||||
if(this.state.currentView !== undefined){
|
||||
this.applyMetaTags(this.state.currentView, <any> this.state)
|
||||
}
|
||||
self.metataggingRecalculated.ping()
|
||||
|
||||
}
|
||||
|
|
|
@ -63,7 +63,6 @@ export default class OsmFeatureSource {
|
|||
try {
|
||||
|
||||
for (const neededTile of neededTiles) {
|
||||
console.log("Tile download from OSM", Tiles.tile_from_index(neededTile).join("/"), "started")
|
||||
self.downloadedTiles.add(neededTile)
|
||||
self.LoadTile(...Tiles.tile_from_index(neededTile)).then(_ => {
|
||||
console.debug("Tile ", Tiles.tile_from_index(neededTile).join("/"), "loaded from OSM")
|
||||
|
@ -72,7 +71,6 @@ export default class OsmFeatureSource {
|
|||
} catch (e) {
|
||||
console.error(e)
|
||||
} finally {
|
||||
console.log("Done")
|
||||
self.isRunning.setData(false)
|
||||
}
|
||||
})
|
||||
|
@ -93,7 +91,6 @@ export default class OsmFeatureSource {
|
|||
const url = `${this._backend}/api/0.6/map?bbox=${bbox.minLon},${bbox.minLat},${bbox.maxLon},${bbox.maxLat}`
|
||||
try {
|
||||
|
||||
console.log("Attempting to get tile", z, x, y, "from the osm api")
|
||||
const osmJson = await Utils.downloadJson(url)
|
||||
try {
|
||||
console.debug("Got tile", z, x, y, "from the osm api")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue