`; } 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 ('colima' != '') { 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: 413079187, lat: 19.413174, lon: -99.136681, bn: 'RAMOS IMPRESORES', address1: 'CALLE JUAN DE DIOS PEZA 139 A-C, OBRERA', address2: 'CUAUHTEMOC, 06800, DF', url: '/informacion/tesis-profesionales-impresores-de/obrera/cuauhtemoc/DF/ramos-impresores/413079187', phone: '(55)5515-7623', isnational: 'false', index: 0, param1: null, category: 'imprentas-y-encuadernaciones', adsa: 'adsa', state: 'colima', direccionRuta: 'https://www.seccionamarilla.com.mx/mapas/como-llegar/ramos-impresores/imprentas-y-encuadernaciones/df/cuauhtemoc/413079187', city: 'cuauhtemoc', bnPath: 'ramos-impresores', dir: 'OBRERA, C.P.06800' }; resultados.push(resultado); }