All files / src/app/map map-defaults.ts

100% Statements 8/8
100% Branches 0/0
100% Functions 0/0
100% Lines 8/8

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53      1x                                   1x         1x         1x         1x         1x         1x         1x  
/**
 * Default basemap to use for maps in the application.
 */
export const defaultBasemap = 'osm';
 
/**
 * Initial extent for maps in the application. Covers Switzerland.
 */
export const initialExtent = {
    xmin: 780000.0,
    ymin: 5720000.0,
    xmax: 1105000.0,
    ymax: 6100000.0,
    spatialReference: {
        wkid: 102100
    }
} as __esri.Extent;
 
/**
 * The maximum scale for the map to go to edition mode in the application.
 */
export const maxScaleForEdition = 9027.977411;
 
/**
 * The width to use in mm for maps in the final A3 print template.
 */
export const printWidthMm = 360;
 
/**
 * The height to use in mm for maps in the final A3 print template.
 */
export const printHeightMm = 245;
 
/**
 * The size of the border to use in mm for maps in the final A3 print template.
 */
export const printBorderMm = 2;
 
/**
 * The dpi to use for printing maps.
 */
export const dpi = 96;
 
/**
 * Multiplier to convert millimeters to inches.
 */
export const mmToInchMultiplier = 0.0393701;
 
/**
 * The default aspect ratio (width / height) for maps.
 */
export const mapsAspectRatio = printWidthMm / printHeightMm;