`; } 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 ('veracruz' != '') { 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: 400910935, lat: 19.440993, lon: -99.203802, bn: 'TEATRO TELCEL', address1: 'LAGO ZURICH 245, AMPLIACION GRANADA', address2: 'MIGUEL HIDALGO, 11529, DF', url: '/informacion/espectaculos-centros-de/ampliacion-granada/miguel-hidalgo/DF/teatro-telcel/400910935', phone: '(55)5207-1498', isnational: 'false', index: 0, param1: null, category: 'espectaculos-centros-de', adsa: 'adsa', state: 'veracruz', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/teatro-telcel/espectaculos-centros-de/df/miguel-hidalgo/400910935', city: 'miguel-hidalgo', bnPath: 'teatro-telcel', dir: 'AMPLIACION GRANADA, C.P.11529' }; resultados.push(resultado); var resultado = { id: 998564940, lat: 20.737749, lon: -103.378622, bn: 'AUDITORIO TELMEX', address1: 'OBREROS DE CANANEA 747, INDUSTRIAL LOS BELENES', address2: 'ZAPOPAN, 45157, JAL', url: '/informacion/espectaculos-centros-de/industrial-los-belenes/zapopan/JAL/auditorio-telmex/998564940', phone: '(33)3818-3800', isnational: 'false', index: 1, param1: null, category: 'espectaculos-centros-de', adsa: 'adsa', state: 'veracruz', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/auditorio-telmex/espectaculos-centros-de/jal/zapopan/998564940', city: 'zapopan', bnPath: 'auditorio-telmex', dir: 'INDUSTRIAL LOS BELENES, C.P.45157' }; resultados.push(resultado); }