Demo entry 6627917

Choropleth

   

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

let gisplay = new Gisplay(); 
let gm = new BGMapGoogleMaps( 
	new google.maps.Map(document.getElementById('map'), { 
		zoom: 4, 
		center: { lat: 49.36855556, lng: -81.66371667 } 
	}) 
	); 

let options = { 
	attr: 'f3', 
	legendTitle: 'Fatals' 
} 

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

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).