From b0fcf647ebe8333bb99e671614af47c054d21125 Mon Sep 17 00:00:00 2001 From: Brian Kelly Date: Wed, 28 Aug 2024 08:32:27 -0500 Subject: [PATCH] Ensure data-inspect attribute is set on leaflet maps --- app/helpers/geoblacklight_helper.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/helpers/geoblacklight_helper.rb b/app/helpers/geoblacklight_helper.rb index bf2871f0..8083ba4f 100644 --- a/app/helpers/geoblacklight_helper.rb +++ b/app/helpers/geoblacklight_helper.rb @@ -266,6 +266,7 @@ def leaflet_viewer "map-geom" => @document.geometry.geojson, "catalog-path" => search_catalog_path, :available => document_available?, + :inspect => show_attribute_table?, :basemap => geoblacklight_basemap, :leaflet_options => leaflet_options }) @@ -281,6 +282,7 @@ def ol_viewer "map-geom" => @document.geometry.geojson, "catalog-path" => search_catalog_path, :available => document_available?, + :inspect => show_attribute_table?, :basemap => geoblacklight_basemap, :leaflet_options => leaflet_options })