primaryAction = function (mapBrowserEvent) {
  const pointerEvent = mapBrowserEvent.originalEvent;
  return (
    'pointerId' in pointerEvent &&
    pointerEvent.isPrimary &&
    pointerEvent.button === 0
  );
}
Return `true` if the event originates from a primary pointer in
contact with the surface or if the left mouse button is pressed.
See https://www.w3.org/TR/pointerevents/#button-states.

@param {import("../MapBrowserEvent.js").default} mapBrowserEvent Map browser event.
@return {boolean} True if the event originates from a primary pointer.
@api