Demo entry 6627967

Change Map

   

Submitted by anonymous on Jun 30, 2017 at 18:47
Language: JavaScript. Code size: 547 Bytes.

let gisplay = new Gisplay();
let here = new BGMapHereMaps(document.getElementById('map'),
    defaultLayers.normal.map,
    {
        zoom: 4,
        center: { lat: 49.36855556, lng: -81.66371667 }
    }
);

let options = {
    subtrahend: 'f2',
    minuend: 'f6',
    legendTitle: "Fatals change between 2009 and 2013"
}

let datareader = new FileReader();
datareader.onloadend = function () {
    let data = JSON.parse(datareader.result);
    gisplay.makeChangeMap(here, data, options);
}
datareader.readAsText(url_to_data);

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).