%= 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 %> <%= linkmap_area_background_image_div('visited', attributes, configuration, color_map_file) %> <% if configuration['background_type'] == 'hover_video' && !find_file_in_entry(Pageflow::ImageFile, configuration['hover_image_id']) %> <%= background_image_div(configuration, 'panorama_video', file_type: 'video_file', class: 'hover_image') %> <% else %> <%= linkmap_area_background_image_div('hover', attributes, configuration, color_map_file) %> <% end %>