function addRemoveRootStyleProperty(type, x, y, markerHeight) {
  const posX = "--position-x";
  const posY = "--position-y";
  const mHeight = "--marker-height";

  if (type === "add") {
    // add style to html - root element
    root.style.setProperty(posX, x + "px");
    root.style.setProperty(posY, y + "px");
    root.style.setProperty(mHeight, markerHeight + "px");
  } else {
    // remove all style
    root.style.removeProperty(posX);
    root.style.removeProperty(posY);
    root.style.removeProperty(mHeight);
  }
}
Add/remove style property to the root element (html)

@param {String} type
@param {Number} x
@param {Number} y
@param {Number} markerHeight