`; } 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: 401442637, lat: 24.135527, lon: -110.31763, bn: 'MEGA DULCERIAS SOTRES', address1: 'JALISCO 1380, INFONAVIT', address2: 'LA PAZ, 23070, BCS', url: '/informacion/donas-pan-dulce/infonavit/la-paz/BCS/mega-dulcerias-sotres/401442637', phone: '(612)128-6350', isnational: 'false', index: 0, param1: null, category: 'dulcerias', adsa: 'adsa', state: 'oaxaca', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/mega-dulcerias-sotres/dulcerias/bcs/la-paz/401442637', city: 'la-paz', bnPath: 'mega-dulcerias-sotres', dir: 'INFONAVIT, C.P.23070' }; resultados.push(resultado); var resultado = { id: 3858602, lat: 24.152469, lon: -110.323851, bn: 'GRUAS DON NICHO', address1: 'BELISARIO DOMINGUEZ 2522, ZONA CENTRAL', address2: 'LA PAZ, 23000, BCS', url: '/informacion/donas-pan-dulce/zona-central/la-paz/BCS/gruas-don-nicho/3858602', phone: '(612)122-6446', isnational: 'false', index: 1, param1: null, category: 'gruas-servicio-de', adsa: 'adsa', state: 'oaxaca', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/gruas-don-nicho/gruas-servicio-de/bcs/la-paz/3858602', city: 'la-paz', bnPath: 'gruas-don-nicho', dir: 'ZONA CENTRAL, C.P.23000' }; resultados.push(resultado); }