google.maps.event.addListener(marker, 'click', function() {
infowindow.setContent('');
infowindow.close();
dataAvailable = true;
$.ajax({
type: "POST",
global: false,
dataType: "html",
url: "<?= $this->Url->build(['controller' => 'stocks', 'action' => 'getMapProductStoreImagesClusteringQueryTwo']) ?>",
data: {
orderId: this.order_id,
productId: this.product_id,
activationid: this.si_a_id,
suburb_id: this.suburb_id,
str: '<?= $str ?>',
offsetValue: offsetValue,
},
success: function (data)
{
infowindow.setContent(data);