-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #372 from sigcorporativo-ja/develop
v6.0.1
- Loading branch information
Showing
23 changed files
with
1,390 additions
and
951 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,45 @@ | ||
## Descripción | ||
|
||
Plugin de impresión a través del servicio Geoprint. Las capacidades del mismo definen las opciones de impresión disponibles: dpi, | ||
formatos y plantillas. En función de la plantilla elegida, en el construtctor del plugin habrá que incluir los parámetros que dicha | ||
plantilla necesite. Las plantillas 'imagen apaisada' e 'imagen cuadrada' no necesitan parámetros. | ||
Plugin de impresión a través del servicio Geoprint3. Recibe como parámetro opcional la Configuración de impresión que consumir, siendo una Configuración un conjunto de plantillas y opciones de impresión (formatos, dpi) agrupadas bajo una denomincación. Así, cada aplicación web podrá tener su propia Configuración para imprimir plantillas personalizadas. | ||
|
||
## Recursos y uso | ||
|
||
- js: https://mapea4-sigc.juntadeandalucia.es/plugins/printer/printer-x.y.z.ol.min.js | ||
- css: https://mapea4-sigc.juntadeandalucia.es/plugins/printer/printer-x.y.z.min.css | ||
- js: https://mapea4-sigc.juntadeandalucia.es/plugins/printerdos/printerdos-x.y.z.ol.min.js | ||
- css: https://mapea4-sigc.juntadeandalucia.es/plugins/printerdos/printerdos-x.y.z.min.css | ||
|
||
Donde x.y.z representan la versión del plugin a usar según la versión de Mapea, atendiendo a la tabla de compatibilidad de versiones que se muestra más adelante. | ||
Donde x.y.z representan la versión del plugin a usar según la versión de Mapea, atendiendo a la compatibilidad de versiones que se muestra más adelante. | ||
|
||
Configuración por defecto sin parámetros: | ||
```javascript | ||
mapajs.addPlugin(new M.plugin.Printer()); | ||
``` | ||
Establecimiento de parámetros y valores seleccionados por defecto en los selectores: | ||
``` | ||
parámetro | descripción | | ||
--- | --- | | ||
url | (opcional) Url de la Configuración que consumir | | ||
params.urlApplication | (opcional) Instancia de Geoprint3 | | ||
params.layout.outputFilename | (opcional) Nombre fichero generado | | ||
options.layout | (opcional) Plantilla preseleccionada | ||
|
||
Establecimiento de parámetros y valores preseleccionados: | ||
```javascript | ||
mapajs.addPlugin(new M.plugin.Printer({ | ||
"params": { | ||
"pages": { | ||
"creditos": "Impresión generada a través de Mapea" | ||
}, | ||
"layout": { | ||
"outputFilename": "mapea_${yyyy-MM-dd_hhmmss}" | ||
}, | ||
url: 'https://geoprint-sigc.juntadeandalucia.es/geoprint3/print/SIGC', | ||
params: { | ||
urlApplication: 'https://geoprint-sigc.juntadeandalucia.es/geoprint3', | ||
layout: { | ||
outputFilename: 'impresion_${yyyy-MM-dd_hhmmss}', | ||
} | ||
}, | ||
'options': { | ||
'layout': 'imagen apaisada', | ||
'format': 'png', | ||
'dpi': '127' | ||
options: { | ||
layout: 'A4 landscape (SIGC)' | ||
} | ||
})); | ||
``` | ||
|
||
## Ejemplo funcional | ||
|
||
[JSFiddle](http://jsfiddle.net/sigcJunta/b6d4hd53/) | ||
|
||
## Observaciones | ||
Los json que Mapea envía al servidor Geoprint deben cumplir con las siguientes condiciones: | ||
* Los colores se indican en formato hexadecimal de seis dígitos, sin dígito para transparencia. | ||
* No contener atributos de estilo vacíos. | ||
[JSFiddle](https://jsfiddle.net/sigcJunta/f6tpy27o/) | ||
|
||
|
||
## Tabla de compatibilidad de versiones | ||
versión plugin | versión Mapea | | ||
--- | --- | | ||
1.0.0 | <= 4.1.0 | ||
1.1.0 | 4.2.0 | ||
2.0.0 | >= 5.0.0 | ||
[Consulta el api resourcePlugin](https://mapea4-sigc.juntadeandalucia.es/mapea/api/actions/resourcesPlugins?name=printerdos) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.