M
M
MorUr2017-08-27 16:48:05
JavaScript
MorUr, 2017-08-27 16:48:05

How to display slider in info window on google map?

Good afternoon.
IM on Bitrix. There is a page displaying a Google map containing markers of different places. The markers are taken from the infoblock property. One of the properties of the same infoblock is the image gallery. In the pop-up window that appears when you click on the map marker, I displayed the title and one more property (p. 1 of the screenshot), but I can’t display the gallery (p. 2 of the screenshot).
Part of the gallery output code:

foreach($arResult["MORE_PHOTO"] as $PHOTO)
{
$arShop['PHOTOS'] .= '<li><img src="'.$PHOTO['SRC'].'" /></li>';
}

if($arShop['GPS_S'] && $arShop['GPS_N']){
$mapLAT += $arShop['GPS_S'];
$mapLON += $arShop['GPS_N'];
$arPlacemarks[] = array(
"ID" => $arShop["ID"],
"LAT" => $arShop['GPS_S'],
"LON" => $arShop['GPS_N'],
"TEXT" => $arShop["TITLE"],
"HTML" => '
<div class="title">Кол-во работ в '.$arShop["ADDRESS"].': <i>'.$arShop['WORK'].'</i></div>
<div class="info-content">
<div class="flexslider">
<ul class="slides">.($arShop['PHOTOS']).'</ul>
</div>
<div>'
);
}

The js from the flexslider photo gallery itself does not work. Can you tell me how to display the slider in the popup window?
joxi.ru/ZrJeZRqi1DLDaA

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question