Demo entry 6627970

Dot Map

   

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

let gisplay = new Gisplay();
let mb = new BGMapMapBox(L.mapbox.map('map', 'mapbox.dark').setView([49.36855556, -81.66371667], 4));

let options = {
    colorScheme: ["red", "green"],
    attr: 'f1',
    legendTitle: "Alcohol"
}

let datareader = new FileReader();
datareader.onloadend = function () {
    let data = JSON.parse(datareader.result);
    gisplay.makeDotMap(mb, 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).