Adición del modo mapa satelital

This commit is contained in:
Juan Burgos
2026-08-05 13:13:04 +00:00
parent e31ab73c05
commit 70460b3310
6 changed files with 32 additions and 19 deletions

View File

@@ -12,8 +12,10 @@ define([
//console.log('Params:', params);
this.anexarUbic = ko.observable(false);
this.satMap = ko.observable(false);
this.anexarImagenes = ko.observable(false);
this.anexarPdfs = ko.observable(false);
const boolToStr = (bool) => bool ? "1" : "0";
self.resourceId = ko.observable(
@@ -23,7 +25,7 @@ define([
self.exportPDF = function() {
var id = self.resourceId();
if (id) {
var url = '/export/pdf/' + id + '/' + boolToStr(self.anexarUbic()) + '/' + boolToStr(self.anexarImagenes()) + '/' + boolToStr(self.anexarPdfs()) + '/';
var url = '/export/pdf/' + id + '/' + boolToStr(self.anexarUbic()) + '/' + boolToStr(self.satMap()) + '/' + boolToStr(self.anexarImagenes()) + '/' + boolToStr(self.anexarPdfs()) + '/';
window.open(url, '_blank');
} else {
alert('No se encontró el ID del recurso.');