`; } if (tipo == 'places') { contentString = ``; } var infoWindow = new google.maps.InfoWindow({ content: contentString }); google.maps.event.addListener(marker, 'click', function () { map.setZoom(14); map.setCenter(marker.getPosition()); if (activeWindow != null) activeWindow.close(); infoWindows[this.infoWindowIndex].open(map, this); activeWindow = infoWindows[this.infoWindowIndex]; }); google.maps.event.addListener(infoWindow, 'closeclick', function () { map.setZoom(zoom); map.setCenter(markers[0].getPosition()); }); infoWindows.push(infoWindow); markers.push(marker); map.setCenter(markers[0].getPosition()); mapCounter = index; } function getShared(advListId) { $("#shared_" + advListId).click(); } const resultados = []; function initMap() { if ('nayarit' != '') { zoom = 12; } map = new google.maps.Map(document.getElementById('show-map'), { scrollwheel: false, zoom: zoom }); var latLonIsNull = 'isNull'; var latValue = ''; var lonValue = ''; if (latLonIsNull == "notNull") { if (latValue != null && lonValue != null) { var markerMU = new google.maps.Marker({ position: { lat: parseFloat(latValue), lng: parseFloat(lonValue) }, map: map, title: "Mi actual ubicación", icon: "https://maps.google.com/mapfiles/ms/icons/red-dot.png" }); } } var resultado = { id: 3709712, lat: 20.679334, lon: -103.360627, bn: 'TACOS AL VAPOR EL GORDO', address1: 'SAN FELIPE 1021, CENTRO', address2: 'GUADALAJARA, 44200, JAL', url: '/informacion/valvulas-para-vapor/centro/guadalajara/JAL/tacos-al-vapor-el-gordo/3709712', phone: '(33)3825-4711', isnational: 'false', index: 0, param1: null, category: 'tacos', adsa: 'adsa', state: 'nayarit', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/tacos-al-vapor-el-gordo/tacos/jal/guadalajara/3709712', city: 'guadalajara', bnPath: 'tacos-al-vapor-el-gordo', dir: 'CENTRO, C.P.44200' }; resultados.push(resultado); }