Drop support for mapillary v3.0, small fix for custom themes

This commit is contained in:
Pieter Vander Vennet 2021-11-11 17:35:24 +01:00
parent f9c4b7ae6d
commit 3570cfbaa8
2 changed files with 27 additions and 70 deletions

View file

@ -32,7 +32,7 @@ export default class LegacyJsonConvert {
// This is a legacy format, lets create a pointRendering
let location: ("point" | "centroid")[] = ["point"]
let wayHandling: number = config["wayHandling"] ?? 0
if (wayHandling === 2) {
if (wayHandling !== 0) {
location = ["point", "centroid"]
}
config.mapRendering = [