`; } 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: 3688167, lat: 19.421419, lon: -99.133696, bn: 'CUENCA AUTOMOTRIZ', address1: 'CALLEJON SAN ANTONIO ABAD 62, TRANSITO', address2: 'CUAUHTEMOC, 06820, DF', url: '/informacion/hojalaterias/transito/cuauhtemoc/DF/cuenca-automotriz/3688167', phone: '(55)5538-2503', isnational: 'false', index: 0, param1: null, category: 'talleres-mecanicos', adsa: 'adsa', state: 'zacatecas', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/cuenca-automotriz/talleres-mecanicos/df/cuauhtemoc/3688167', city: 'cuauhtemoc', bnPath: 'cuenca-automotriz', dir: 'TRANSITO, C.P.06820' }; resultados.push(resultado); var resultado = { id: 3769696, lat: 19.439355, lon: -99.163117, bn: 'AUTO SERVICIO TIGRIS', address1: 'GABINO BARREDA 58, SAN RAFAEL', address2: 'CUAUHTEMOC, 06470, DF', url: '/informacion/hojalaterias/san-rafael/cuauhtemoc/DF/auto-servicio-tigris/3769696', phone: '(55)5535-1410', isnational: 'false', index: 1, param1: null, category: 'talleres-mecanicos', adsa: 'adsa', state: 'zacatecas', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/auto-servicio-tigris/talleres-mecanicos/df/cuauhtemoc/3769696', city: 'cuauhtemoc', bnPath: 'auto-servicio-tigris', dir: 'SAN RAFAEL, C.P.06470' }; resultados.push(resultado); }