forked from MapComplete/MapComplete
chore: automated housekeeping...
This commit is contained in:
parent
a8fd550b72
commit
6a0b77eb99
180 changed files with 16812 additions and 2509 deletions
|
@ -165,9 +165,12 @@ class MvtFeatureBuilder {
|
|||
i += commandCount * 2
|
||||
}
|
||||
if (commandId === 7) {
|
||||
if(currentRing.length === 0){
|
||||
console.error("Invalid MVT file: got a 'closePath', but the currentRing is empty. Full command:", commandInteger)
|
||||
}else{
|
||||
if (currentRing.length === 0) {
|
||||
console.error(
|
||||
"Invalid MVT file: got a 'closePath', but the currentRing is empty. Full command:",
|
||||
commandInteger
|
||||
)
|
||||
} else {
|
||||
currentRing.push([...currentRing[0]])
|
||||
}
|
||||
i++
|
||||
|
@ -438,7 +441,7 @@ export default class MvtSource implements FeatureSourceForTile, UpdatableFeature
|
|||
}
|
||||
this._features.setData(features)
|
||||
} catch (e) {
|
||||
console.error("Could not download MVT "+this._url+" tile due to", e)
|
||||
console.error("Could not download MVT " + this._url + " tile due to", e)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue