Popups with leader lines This sample shows how to create a leader line that connects a position to a popup. This allows the popup to be moved anywhere on the map but still be connected to its main position.