`; } 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 ('oaxaca' != '') { 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: 412827045, lat: 25.694068, lon: -100.346497, bn: 'CAAMEDIC MITRAS', address1: 'AVENIDA HERMOSILLO 3240, MITRAS CENTRO', address2: 'MONTERREY, 64460, NL', url: '/informacion/telas-no-tejidas/mitras-centro/monterrey/NL/caamedic-mitras/412827045', phone: '(81)1640-9743', isnational: 'false', index: 0, param1: null, category: 'telas-no-tejidas', adsa: 'adsa', state: 'oaxaca', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/caamedic-mitras/telas-no-tejidas/nl/monterrey/412827045', city: 'monterrey', bnPath: 'caamedic-mitras', dir: 'MITRAS CENTRO, C.P.64460' }; resultados.push(resultado); var resultado = { id: 412928960, lat: 25.659306, lon: -100.236882, bn: 'MULTISERVICIOS HENE, S.A.S.', address1: 'BENITO JUÁREZ 2611, LOMAS DE TOLTECA', address2: 'GUADALUPE, 67178, NL', url: '/informacion/telas-no-tejidas/lomas-de-tolteca/guadalupe/NL/multiservicios-hene-sas/412928960', phone: '(81)2861-4055', isnational: 'false', index: 1, param1: null, category: 'telas-no-tejidas', adsa: 'adsa', state: 'oaxaca', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/multiservicios-hene-sas/telas-no-tejidas/nl/guadalupe/412928960', city: 'guadalupe', bnPath: 'multiservicios-hene-sas', dir: 'LOMAS DE TOLTECA, C.P.67178' }; resultados.push(resultado); }