`; } 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 ('michoacan' != '') { 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: 3825312, lat: 19.419034, lon: -102.045496, bn: 'ELECTRICA INDUSTRIAL IBE', address1: 'CALLE 6 21, EDUARDO RUIZ', address2: 'URUAPAN, 60130, MICH', url: '/informacion/tableros-para-controles-electricos/eduardo-ruiz/uruapan/MICH/electrica-industrial-ibe/3825312', phone: '(452)523-7665', isnational: 'false', index: 0, param1: null, category: 'material-electrico', adsa: 'adsa', state: 'michoacan', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/electrica-industrial-ibe/material-electrico/mich/uruapan/3825312', city: 'uruapan', bnPath: 'electrica-industrial-ibe', dir: 'EDUARDO RUIZ, C.P.60130' }; resultados.push(resultado); var resultado = { id: 3419933, lat: 19.423431, lon: -102.068483, bn: 'RAULIN MATERIAL ELECTRICO', address1: 'INDEPENDENCIA 94, SANTO SANTIAGO', address2: 'URUAPAN, 60030, MICH', url: '/informacion/tableros-para-controles-electricos/santo-santiago/uruapan/MICH/raulin-material-electrico/3419933', phone: '(452)524-5276', isnational: 'false', index: 1, param1: null, category: 'material-electrico', adsa: 'adsa', state: 'michoacan', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/raulin-material-electrico/material-electrico/mich/uruapan/3419933', city: 'uruapan', bnPath: 'raulin-material-electrico', dir: 'SANTO SANTIAGO, C.P.60030' }; resultados.push(resultado); var resultado = { id: 3136223, lat: 19.43135, lon: -102.07036, bn: 'CENTRO ELECTRICO DE URUAPAN', address1: 'RíO AMAZONAS 10, LOS RIYITOS', address2: 'URUAPAN, 60030, MICH', url: '/informacion/tableros-para-controles-electricos/los-riyitos/uruapan/MICH/centro-electrico-de-uruapan/3136223', phone: '(452)524-4556', isnational: 'false', index: 2, param1: null, category: 'material-electrico', adsa: 'adsa', state: 'michoacan', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/centro-electrico-de-uruapan/material-electrico/mich/uruapan/3136223', city: 'uruapan', bnPath: 'centro-electrico-de-uruapan', dir: 'LOS RIYITOS, C.P.60030' }; resultados.push(resultado); }