`; } 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 ('chiapas' != '') { 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: 412908512, lat: 14.904486, lon: -92.296751, bn: 'BASCULA CAMIONERA PUBLICA EL CASTAÑO', address1: 'TAPACHULA - JUCHITÁN DE ZARAGOZA 52, 5A SAN RAMON', address2: 'TAPACHULA, 30763, CHIS', url: '/informacion/transportadores/5a-san-ramon/tapachula/CHIS/bascula-camionera-publica-el-castano/412908512', phone: '(96)2224-6715', isnational: 'false', index: 0, param1: null, category: 'logistica', adsa: 'adsa', state: 'chiapas', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/bascula-camionera-publica-el-castano/logistica/chis/tapachula/412908512', city: 'tapachula', bnPath: 'bascula-camionera-publica-el-castano', dir: '5A SAN RAMON, C.P.30763' }; resultados.push(resultado); var resultado = { id: 998408353, lat: 14.887228, lon: -92.263027, bn: 'TRANS GALGOS INTER', address1: '13 ORIENTE 436, CALCANEO BELTRAN', address2: 'TAPACHULA, 30790, CHIS', url: '/informacion/transportadores/calcaneo-beltran/tapachula/CHIS/trans-galgos-inter/998408353', phone: '(962)626-2050', isnational: 'false', index: 1, param1: null, category: 'autobuses-foraneos-para-pasajeros', adsa: 'adsa', state: 'chiapas', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/trans-galgos-inter/autobuses-foraneos-para-pasajeros/chis/tapachula/998408353', city: 'tapachula', bnPath: 'trans-galgos-inter', dir: 'CALCANEO BELTRAN, C.P.30790' }; resultados.push(resultado); }