If you use the Knockout approach when working with the Map UI component, you can pass an observable array to the markers property to easily manage markers.
This property takes on an object containing the text and isShown fields. The text field specifies the tooltip text. The isShown field takes on a Boolean value that specifies whether a tooltip is visible by default or not. If the tooltip should be hidden by default, pass the tooltip text directly to the tooltip property.