Commit 0707d6e3 authored by ndurand's avatar ndurand
Browse files

Impression: ajout d'une option pour changé la vue de la carte

parent b55febaa
......@@ -3791,6 +3791,11 @@
"resolved": "https://registry.npmjs.org/chart.js/-/chart.js-3.9.1.tgz",
"integrity": "sha512-Ro2JbLmvg83gXF5F4sniaQ+lTbSv18E+TIf2cOeiH1Iqd2PGFOtem+DUufMZsCJwFE7ywPOpfXFBwRTGq7dh6w=="
},
"chartjs-plugin-datalabels": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/chartjs-plugin-datalabels/-/chartjs-plugin-datalabels-2.1.0.tgz",
"integrity": "sha512-WA6R4saSlY6mnyX78SkbSo2gGc+cj87lFi5zBrsjjYxE76JgXyxHa1OTodVCzRPoqeYJqSEOffeJ/897kRHR6w=="
},
"chokidar": {
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
......
......@@ -9,7 +9,12 @@
* templateId: 'graph-recolte',
* colors: ['#7845', '#4578'],
* labels: {ete2020: 'été 2020', printemps2020: 'printemps 2020', hivers2025: 'hivers 2025'}
* }}
* }},
* view:{
* projection: "urn:ogc:def:crs:EPSG::2154",
* center: [563401.85717836,6792415.9857373],
* zoom: 12
* }
* }
* ```
*/
......@@ -17,6 +22,8 @@ import {OptionChart} from './option-chart';
import {featureCollection} from './context';
import Properties = featureCollection.Properties;
export interface OptionImpression{
/** Champs afficher dans l'impression */
fields?: {[key: string]: unknown};
......@@ -26,4 +33,14 @@ export interface OptionImpression{
/** correspondance entre l'id des graph dans le template et les champs */
graph?: {[key: string]: OptionChart};
/** Pour centrer la vue de la carte sur un point */
view?: ImpressionView;
}
export interface ImpressionView{
center: number[];
zoom: number;
projection: string;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment