Skip to content

Commit

Permalink
Merge pull request #51 from helsingborg-stad/fix/corrected-location-a…
Browse files Browse the repository at this point in the history
…ttribute

fix: corrected location attribute
  • Loading branch information
sebastianthulin authored Aug 15, 2024
2 parents 3f09bc4 + 86f07c6 commit d7c2aa8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/collection.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]
Expand Down Expand Up @@ -51,6 +51,7 @@
'tags' => $place->termsUnlinked,
'classList' => ['u-padding__y--2'],
'format' => true,
'compress' => 3
])
@endtags
@endgroup
Expand Down

0 comments on commit d7c2aa8

Please sign in to comment.