`; } 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 ('yucatan' != '') { 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: 3326415, lat: 21.867668, lon: -102.244527, bn: 'TRAPO INDUSTRIAL Y TRAPEADORES DE AGUASCALIENTES', address1: 'CARRET AGS SLP KM 2, ASTURIAS', address2: 'AGUASCALIENTES, 20190, AGS', url: '/informacion/retacerias/asturias/aguascalientes/AGS/trapo-industrial-y-trapeadores-de-aguascalientes/3326415', phone: '(449)974-1892', isnational: 'false', index: 0, param1: null, category: 'estopas', adsa: 'adsa', state: 'yucatan', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/trapo-industrial-y-trapeadores-de-aguascalientes/estopas/ags/aguascalientes/3326415', city: 'aguascalientes', bnPath: 'trapo-industrial-y-trapeadores-de-aguascalientes', dir: 'ASTURIAS, C.P.20190' }; resultados.push(resultado); }