# Map Popup
<flow-map-popup>
The map popup component defines popup content and configuration.
Add a Map Popup sub-component to a map to define a popup template for use with the Map Data Source component. Content and configuration from the Map Popup component is used to display a popup when a map feature is clicked. To associate the Map Popup template with a Map Data Source and enable automatic popups, set the selection-popup
attribute of the Map Data Source component to the ID of the Map Popup component.
HTML within the <flow-map-popup>
opening and closing tags will be cloned and used as the popup content. Specify additional attributes to configure aspects of the popup. Note that the attributes of the Map Popup component match the properties of FlowCoreMapPopupOptions, which is used when programmatically opening a popup.
# Examples
# Displaying a Popup That Tracks a Moving Feature
Specify the track-location
attribute to automatically track the location of the map feature associated with
the popup.
In the demo below a Map Data Source is updated every second to simulate a moving point. Click on the point to open the popup.