Add warning for big minzoom
This commit is contained in:
parent
d4a2b5899b
commit
aa5fc97269
1 changed files with 4 additions and 0 deletions
|
@ -537,6 +537,10 @@ export class ValidateLayer extends DesugaringStep<LayerConfigJson> {
|
|||
errors
|
||||
}
|
||||
}
|
||||
|
||||
if(json.minzoom > Constants.userJourney.minZoomLevelToAddNewPoints ){
|
||||
(json.presets?.length > 0 ? errors : warnings).push(`At ${context}: minzoom is ${json.minzoom}, this should be at most ${Constants.userJourney.minZoomLevelToAddNewPoints} as a preset is set. Why? Selecting the pin for a new item will zoom in to level before adding the point. Having a greater minzoom will hide the points, resulting in possible duplicates`)
|
||||
}
|
||||
|
||||
{
|
||||
// duplicate ids in tagrenderings check
|
||||
|
|
Loading…
Reference in a new issue