Demo entry 6627972

Proportion Symbols

   

Submitted by anonymous on Jun 30, 2017 at 19:02
Language: JavaScript. Code size: 495 Bytes.

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

let options = {
	minPointSize: 5,
    maxPointSize: 100,
    attr: 'f1',
    numberOfLegendItems: 3,
    legendTitle: "Accidents"
}

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