From 86f07c68a9a5b5cfb9a0bd1adfe5c544e8279dec Mon Sep 17 00:00:00 2001 From: Niclas Date: Thu, 15 Aug 2024 13:16:34 +0200 Subject: [PATCH] fix: corrected location attribute --- views/collection.blade.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/views/collection.blade.php b/views/collection.blade.php index d8400ce..2df8961 100644 --- a/views/collection.blade.php +++ b/views/collection.blade.php @@ -3,7 +3,7 @@ 'containerAware' => true, 'bordered' => true, 'attributeList' => [ - 'data-js-map-location' => !empty($place->openStreetMapData['pin']) ? json_encode($place->openStreetMapData['pin']) : "", + 'data-js-map-location' => !empty($place->openStreetMapData['pin']) ? json_encode(array_merge($place->openStreetMapData['pin'], ['id' => 'osm-' . $place->id])) : "", 'id' => 'osm-' . $place->id, 'tabindex' => '0' ] @@ -51,6 +51,7 @@ 'tags' => $place->termsUnlinked, 'classList' => ['u-padding__y--2'], 'format' => true, + 'compress' => 3 ]) @endtags @endgroup