`; } 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 ('jalisco' != '') { 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: 3739646, lat: 20.290696, lon: -102.711841, bn: 'RESTAURANTE BAR EL SENADOR', address1: 'ZARAGOZA 379, JAMAY CENTRO', address2: 'JAMAY, 47900, JAL', url: '/informacion/restaurantes-en-general/jamay-centro/jamay/JAL/restaurante-bar-el-senador/3739646', phone: '(392)924-2585', isnational: 'false', index: 0, param1: null, category: 'mexicana', adsa: 'adsa', state: 'jalisco', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/restaurante-bar-el-senador/mexicana/jal/jamay/3739646', city: 'jamay', bnPath: 'restaurante-bar-el-senador', dir: 'JAMAY CENTRO, C.P.47900' }; resultados.push(resultado); var resultado = { id: 3579806, lat: 20.292107, lon: -102.707816, bn: 'RESTAURANT BAR DEL LAGO', address1: 'JAMAY-OCOTLAN KM 15, JAMAY CENTRO', address2: 'JAMAY, 47900, JAL', url: '/informacion/restaurantes-en-general/jamay-centro/jamay/JAL/restaurant-bar-del-lago/3579806', phone: '(392)924-1437', isnational: 'false', index: 1, param1: null, category: 'internacional', adsa: 'adsa', state: 'jalisco', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/restaurant-bar-del-lago/internacional/jal/jamay/3579806', city: 'jamay', bnPath: 'restaurant-bar-del-lago', dir: 'JAMAY CENTRO, C.P.47900' }; resultados.push(resultado); }