onConflict
onConflict: "extend" | "subsume" | "replace" | "skip"
Specifies what to do if a FeatureAppearance has already been configured for the specified element, model, or subcategory by a previous call to FeatureOverrides.override.
- "subsume" (the default): Merge the two appearances using the logic described by FeatureAppearance.extendAppearance such that any aspect overridden by the existing appearance will be overwritten
if also overridden by OverrideFeatureAppearanceOptions.appearance.
- The resulting appearance is computed as
existingAppearance.extendAppearance(newAppearance)
.
- The resulting appearance is computed as
- "extend": Merge the two appearances using the logic described by FeatureAppearance.extendAppearance such that any aspect overridden by OverrideFeatureAppearanceOptions.appearance will only
apply if that aspect is not already overridden by a previous appearance.
- The resulting appearance is computed as
newAppearance.extendAppearance(existingAppearance)
.
- The resulting appearance is computed as
- "replace": Completely replace the existing appearance with OverrideFeatureAppearanceOptions.appearance.
- "skip": Keep the existing appearance.
Defined in
- core/common/src/FeatureSymbology.ts Line 327
Last Updated: 20 June, 2023