layer_themes_basic.mjs

/**
## /layer/themes/basic

The layer theme module exports a method for basic themes.

@module /layer/themes/basic
*/

/**
@function basic

@description
The basic [theme] method spreads the theme.style object into the feature.style.

@param {Object} theme The layer.style.theme object.
@param {Object} feature The feature object.
*/
export default function basic(theme, feature) {
  // Spread theme style to retain scale property
  feature.style = {
    ...feature.style,
    ...theme.style,
  };
}