`; } 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: 3485880, lat: 20.685707, lon: -103.427263, bn: 'CHEZ NENE', address1: 'JUAN PALOMAR Y ARIAS 426, VALLARTA UNIVERSIDAD', address2: 'ZAPOPAN, 45110, JAL', url: '/informacion/restaurantes-cocina-francesa/vallarta-universidad/zapopan/JAL/chez-nene/3485880', phone: '(33)3673-4564', isnational: 'false', index: 0, param1: null, category: 'restaurantes-cocina-francesa', adsa: 'adsa', state: 'oaxaca', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/chez-nene/restaurantes-cocina-francesa/jal/zapopan/3485880', city: 'zapopan', bnPath: 'chez-nene', dir: 'VALLARTA UNIVERSIDAD, C.P.45110' }; resultados.push(resultado); var resultado = { id: 3126293, lat: 20.67767, lon: -103.37864, bn: 'PIERROT', address1: 'JUSTO SIERRA 2355, LADRON DE GUEVARA', address2: 'GUADALAJARA, 44600, JAL', url: '/informacion/restaurantes-cocina-francesa/ladron-de-guevara/guadalajara/JAL/pierrot/3126293', phone: '(33)3630-2087', isnational: 'false', index: 1, param1: null, category: 'restaurantes-cocina-francesa', adsa: 'adsa', state: 'oaxaca', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/pierrot/restaurantes-cocina-francesa/jal/guadalajara/3126293', city: 'guadalajara', bnPath: 'pierrot', dir: 'LADRON DE GUEVARA, C.P.44600' }; resultados.push(resultado); }