Remove empty popup image
This commit is contained in:
parent
672a440593
commit
dbcfb12c52
1 changed files with 3 additions and 1 deletions
|
@ -115,7 +115,9 @@
|
||||||
|
|
||||||
popupMarkup = `<h2 class="popup__title">{!! $checkin->title ?? "<i>Untitled</i>" !!}</h2>`;
|
popupMarkup = `<h2 class="popup__title">{!! $checkin->title ?? "<i>Untitled</i>" !!}</h2>`;
|
||||||
popupMarkup += `{!! $popupContent !!}`;
|
popupMarkup += `{!! $popupContent !!}`;
|
||||||
|
@if($checkin->image_url)
|
||||||
popupMarkup += '<img class="popup__image" src="{{ $checkin->image_url }}">';
|
popupMarkup += '<img class="popup__image" src="{{ $checkin->image_url }}">';
|
||||||
|
@endif
|
||||||
marker.bindPopup(popupMarkup).openPopup();
|
marker.bindPopup(popupMarkup).openPopup();
|
||||||
|
|
||||||
checkinMarkers[{{ $checkin->id }}] = marker;
|
checkinMarkers[{{ $checkin->id }}] = marker;
|
||||||
|
|
Loading…
Reference in a new issue