How to use the @hpcc-js/map.TopoJSONChoropleth function in @hpcc-js/map

To help you get started, we’ve selected a few @hpcc-js/map examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hpcc-systems / Visualization / demos / gallery / samples / geospatial / Choropleth / Europe / British Isles.js View on Github external
import { Layered, TopoJSONChoropleth, topoJsonFolder } from "@hpcc-js/map";

topoJsonFolder("https://cdn.jsdelivr.net/npm/@hpcc-js/map@2.0.0/TopoJSON");

const gb = new TopoJSONChoropleth()   //  Great Brittan 
    .region("GB")
    ;

const nd = new TopoJSONChoropleth()   //  Northern Ireland
    .region("ND")
    ;

const ie = new TopoJSONChoropleth()   //  Republic of Ireland
    .region("IE")
    ;

new Layered()
    .layers([
        gb,
        nd,
        ie,
    ])
    .target("target")
    .render()
    ;
github hpcc-systems / Visualization / demos / gallery / samples / geospatial / Choropleth / Europe / West Europe.js View on Github external
import { Layered, TopoJSONChoropleth, topoJsonFolder } from "@hpcc-js/map";

topoJsonFolder("https://cdn.jsdelivr.net/npm/@hpcc-js/map@2.0.0/TopoJSON");

const pt = new TopoJSONChoropleth()   //  Great Brittan 
    .region("PT")
    ;

const es = new TopoJSONChoropleth()   //  Northern Ireland
    .region("ES")
    ;

const fr = new TopoJSONChoropleth()   //  Republic of Ireland
    .region("FR")
    ;

new Layered()
    .layers([
        pt,
        es,
        fr,
    ])
    .target("target")
    .render()
    ;

const eu_countries = ["AT", "BE", "BG", "CHLI", "CY", "CZ", "DE", "DK", "EE", "ES", "FI", "FR", "GB", "GE", "GR", "HR", "HU", "IE", "IS", "IT", "KS", "LT", "LU", "LV", "MD", "MK", "MT", "ND", "NL", "NO", "PL", "PT", "RO", "RS", "SE", "SI", "SK", "UA"];