%= content_tag(:div, class: "linkmap_areas", data: data_attributes) do %> <% (configuration['linkmap_areas'].presence || []).each_with_index do |attributes, index| %> <%= linkmap_area(entry, attributes, index, configuration['background_type']) do %> <% if configuration['background_type'] == 'hover_video' && !Pageflow::ImageFile.find_by_id(configuration['hover_image_id']) %> <%= background_image_div_with_size(configuration, 'panorama_video', file_type: 'video_file', class: 'hover_image') %> <% else %> <% end %>