`; } 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 ('zacatecas' != '') { 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: 408942626, lat: 22.143316, lon: -101.010819, bn: 'INDUSTRIALIZADORA DE CALIZA SA DE CV', address1: 'NUÑEZ Y DOMINGUEZ 245, VIRREYES', address2: 'SAN LUIS POTOSI, 78240, SLP', url: '/informacion/grava-arena-y-piedra/virreyes/san-luis-potosi/SLP/industrializadora-de-caliza-sa-de-cv/408942626', phone: '(444)833-3917', isnational: 'false', index: 0, param1: null, category: 'grava-arena-y-piedra', adsa: 'adsa', state: 'zacatecas', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/industrializadora-de-caliza-sa-de-cv/grava-arena-y-piedra/slp/san-luis-potosi/408942626', city: 'san-luis-potosi', bnPath: 'industrializadora-de-caliza-sa-de-cv', dir: 'VIRREYES, C.P.78240' }; resultados.push(resultado); var resultado = { id: 413067758, lat: 32.525458, lon: -117.033272, bn: 'ARENA JACU', address1: 'AV. JUAN SARABIA 8365, ZONA CENTRO', address2: 'TIJUANA, 22000, BC', url: '/informacion/grava-arena-y-piedra/zona-centro/tijuana/BC/arena-jacu/413067758', phone: '(66)4188-1399', isnational: 'false', index: 1, param1: null, category: 'grava-arena-y-piedra', adsa: 'adsa', state: 'zacatecas', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/arena-jacu/grava-arena-y-piedra/bc/tijuana/413067758', city: 'tijuana', bnPath: 'arena-jacu', dir: 'ZONA CENTRO, C.P.22000' }; resultados.push(resultado); }