Insert a single video in all popups in a layer using the video’s URL

This method allows you to insert a single video that will display for all features in a layer.

If your video is hosted on YouTube or Vimeo, we support simple URL insertion - just grab the complete URL from the video host of your choice, and paste it in your popup editor, and hit ENTER. The video will automatically embed.

Please note, you must include http or https in your URL for the quick embed to work. URLS without the http(s) will render as hyperlinks.

https://www.youtube.com/watch?v=AtRDezpRous

Youtube’s short url will also auto embed

https://youtu.be/AtRDezpRous

Insert a single video in all popups in a layer using the video’s embed code

If you wish to use a custom embed code, click on the embed video button on the editor and paste your iframe embed code in the embed tool.

Your video will now appear in the editor:

Add unique videos hosted on YouTube or Vimeo to each feature in a layer

This method requires that you can add a new column or field to your dataset, containing either the full URL path to the video, or the unique video ID. This can be achieved via QGIS, or a spreadsheet application if you are using a CSV dataset. Learn more about creating and editing dataset.

For the purposes of this documentation, we’ll use a YouTube video as an example, but the same method will work for any hosted video that can be embedded.

The full URL path: https://www.youtube.com/watch?v=9ZfN87gSjvI

The video ID: 9ZfN87gSjvI

Full video URL

If you are using the full URL path, first convert the paths to an embed-ready version for each video. For YouTube, simply replace /watch?v= with /embed/

*This is the most fragile video embed method, as it relies on your map user’s browser to be able to decode the format of the video you are using, and also relies on your web host’s bandwidth and reliability – both of which may be costly if your maps have a large audience. Hosted video via a video service such as YouTube, Wistia, or Vimeo may provide a more reliable and cost effective method to display video content for your map users.