Refactoring: add 'anchor'-field instead of using the iconSize to determine the anchor

This commit is contained in:
Pieter Vander Vennet 2023-06-20 02:47:20 +02:00
parent f4b7e7eb88
commit 36cdcf0648
3 changed files with 13 additions and 3 deletions

View file

@ -62,7 +62,7 @@ export default interface PointRenderingConfigJson {
* For example, a feature attached to the ground can use 'bottom' as zooming in will give the appearance of being anchored to a fixed location.
*
*/
anchor?: "center" | "top" | "bottom" | "left" | "right" | string
anchor?: "center" | "top" | "bottom" | "left" | "right" | string | TagRenderingConfigJson
/**
* The rotation of an icon, useful for e.g. directions.