tmcgee/cmv-widgets

View on GitHub
config/printplus.js

Summary

Maintainability
A
0 mins
Test Coverage
define([
    'esri/config',
    'esri/tasks/GeometryService'
], function (esriConfig, GeometryService) {

    esriConfig.defaults.geometryService = new GeometryService('https://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer');

    return {
        isDebug: true,

        mapOptions: {
            basemap: 'topo',
            center: [-120.0417, 39.0917],
            zoom: 10,
            sliderStyle: 'small'
        },

        titles: {
            header: 'CMV PrintPlus Widget',
            subHeader: 'This is an example of the PrintPlus Widget',
            pageTitle: 'CMV PrintPlus Widget'
        },

        collapseButtonsPane: 'center', //center or outer

        operationalLayers: [],

        widgets: {
            growler: {
                include: true,
                id: 'growler',
                type: 'domNode',
                path: 'gis/dijit/Growler',
                srcNodeRef: 'growlerDijit',
                options: {}
            },
            print: {
                include: true,
                id: 'print',
                type: 'titlePane',
                path: 'widgets/PrintPlus',
                canFloat: false,
                title: 'Print Plus',
                iconClass: 'fas fa-print',
                open: true,
                position: 0,
                options: 'config/printplusWidget'
            }
        }
    };
});