`; } 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: 404566535, lat: 20.641425, lon: -103.42318, bn: 'ALTOS INGENIERÍA ELÉCTRICA', address1: 'VOLCÁN PARICUTÍN 151, EL COLLI URBANO', address2: 'ZAPOPAN, 45070, JAL', url: '/informacion/soldadoras-electricas/el-colli-urbano/zapopan/JAL/altos-ingenieria-electrica/404566535', phone: '(33)3645-2548', isnational: 'false', index: 0, param1: null, category: 'construccion', adsa: 'adsa', state: 'jalisco', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/altos-ingenieria-electrica/construccion/jal/zapopan/404566535', city: 'zapopan', bnPath: 'altos-ingenieria-electrica', dir: 'EL COLLI URBANO, C.P.45070' }; resultados.push(resultado); var resultado = { id: 404861047, lat: 20.650346, lon: -103.414459, bn: 'FONTANERIA Y ELECTRICIDAD DE OCCIDENTE', address1: 'MOCTEZUMA 4290, JARDINES DEL SOL', address2: 'ZAPOPAN, 45050, JAL', url: '/informacion/soldadoras-electricas/jardines-del-sol/zapopan/JAL/fontaneria-y-electricidad-de-occidente/404861047', phone: '(33)2003-4758', isnational: 'false', index: 1, param1: null, category: 'fontanerias', adsa: 'adsa', state: 'jalisco', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/fontaneria-y-electricidad-de-occidente/fontanerias/jal/zapopan/404861047', city: 'zapopan', bnPath: 'fontaneria-y-electricidad-de-occidente', dir: 'JARDINES DEL SOL, C.P.45050' }; resultados.push(resultado); }