diff --git a/src/settings.ts b/src/settings.ts index 03cb8d6f..fed05058 100644 --- a/src/settings.ts +++ b/src/settings.ts @@ -457,6 +457,14 @@ export class ChoroplethSettings { delete properties.legendPosition } + if (!properties.hoverHighlight) { + delete properties.hoverHighlightColor + delete properties.hoverHighlightOpacity + delete properties.hoverHighlightOutlineColor + delete properties.hoverHighlightOutlineOpacity + delete properties.hoverHighlightOutlineWidth + } + return { instances }; }