@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
76 lines (75 loc) • 1.84 kB
JavaScript
// Cross-section
export class CrossSectionState {
loading = false;
datasets = [];
drawProfile = true;
enableAnnotation = false;
drawMarker = false;
enableMeasurement = false;
gridVisible = true;
drawMeasurement = false;
backgroundColor = '#ffffff';
colorVariable = 'intensity';
colorUniform = '#000000';
colorPalette = 'viridis';
cursorDomainCoordinates = [0.0, 0.0];
domain = {
xmin: 0.0,
xmax: 100.0,
ymin: 0.0,
ymax: 50.0
};
pointSizeSettings = {
default: 3.0,
min: 0.1,
max: 20.0,
step: 0.1,
value: 3.0
};
verticalExaggerationSettings = {
default: 1.0,
min: 0.1,
max: 10.0,
step: 0.1,
value: 1.0
};
syncViews = false;
margins = { left: 45, right: 5, top: 10, bottom: 25 };
sectionWidthSettings = {
default: 1.5,
min: 0.1,
max: 50.0,
step: 0.1,
value: 1.5
};
minLOD = 1;
maxLOD = 14;
markers = [];
measurements = [];
linestringCoordinates = [];
linestringShift = 0.5;
numberOfPoints = 0;
maxNumberOfPoints = 1000000;
zoom = { k: 1.0, tx: 0.0, ty: 0.0 };
zoomUpdate = false;
printProfile = false;
printFileFormat = 'svg';
enableLinestringDownload = false;
downloadLinestringFormat = 'kml';
enableAnnotationsDownload = false;
downloadAnnotationsFormat = 'kml';
qualitativeColors = [
'#E41A1C', // Red
'#377EB8', // Blue
'#4DAF4A', // Green
'#984EA3', // Purple
'#FF7F00', // Orange
'#000000ff', // Black
'#A65628', // Brown
'#F781BF', // Pink
'#999999', // Gray
'#66C2A5', // Teal
'#A6D854', // Lime
'#E78AC3' // Light Pink
];
}