`; } 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 ('guanajuato' != '') { 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: 413052896, lat: 21.112066, lon: -101.668263, bn: 'DRA. REMEDIOS RODRÍGUEZ GARCÍA', address1: 'CALLE ISRAEL 503, LEON MODERNO', address2: 'LEON, 37480, GTO', url: '/informacion/medicina-alternativa/leon-moderno/leon/GTO/dra-remedios-rodriguez-garcia/413052896', phone: '(477)716-6624', isnational: 'false', index: 0, param1: null, category: 'medicos-ginecologos-y-obstetras', adsa: 'adsa', state: 'guanajuato', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/dra-remedios-rodriguez-garcia/medicos-ginecologos-y-obstetras/gto/leon/413052896', city: 'leon', bnPath: 'dra-remedios-rodriguez-garcia', dir: 'LEON MODERNO, C.P.37480' }; resultados.push(resultado); var resultado = { id: 3491835, lat: 21.124116, lon: -101.705996, bn: 'POST-GRADO EN MEDICINA FISICA Y REHABILITACION', address1: 'MIGUEL DE CERVANTES SAAVEDRA 204, BELLAVISTA', address2: 'LEON, 37360, GTO', url: '/informacion/medicina-alternativa/bellavista/leon/GTO/post-grado-en-medicina-fisica-y-rehabilitacion/3491835', phone: '(477)718-8300', isnational: 'false', index: 1, param1: null, category: 'medicos-especialistas-en-medicina-fisica-y-rehabilitacion', adsa: 'adsa', state: 'guanajuato', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/post-grado-en-medicina-fisica-y-rehabilitacion/medicos-especialistas-en-medicina-fisica-y-rehabilitacion/gto/leon/3491835', city: 'leon', bnPath: 'post-grado-en-medicina-fisica-y-rehabilitacion', dir: 'BELLAVISTA, C.P.37360' }; resultados.push(resultado); }