Demo entry 6684654

PropSymbols

   

Submitted by anonymous on Dec 16, 2017 at 15:55
Language: TypeScript. Code size: 1.1 kB.

let parsingOptions = {
    mapVariables: [
        {
            internalName: 'Number of deaths',
            externalName: 'f1',
            values: [1, 8587],
            classBreakMethod: 'quantiles'
        }
    ],
    optionalVariables: [
        {
            internalName: 'State',
            externalName: 'f2',
        },
        {
            internalName: 'County',
            externalName: 'f3',
        }
    ],
    urls: {
        dataURL: 'fileCentroid',
    }
};

let mappingOptions = {
    size: {
        externalName: 'f1',
        typeOfVisualVariable: 'size',
        mapping: [30, 50, 100]
    }
};

let globalOptionsUSAOneBound = {
    bounds: {
        usa: {
            NE: { lng: -57.578144, lat: 71.521815 },
            SW: { lng: -175.351582, lat: 4.205206 },
            description: 'Mainland USA'
        }
    },
    container: 'gisplayDiv',
    provider: 'HM',
    showLoader: true
};

Gisplay.makeProportionalSymbolsMap(parsingOptions, mappingOptions, globalOptionsUSAOneBound);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).