Creating an Advanced Fusion Google Map with Fusion Table

On a wintry Saturday in 2/21/2015 I teamed up at a hackathon to create a visualization of census data of nepal for code for nepal

They have been collecting Nepal Census Data and want to visualize it.   Here is a sample of their data in a google fusion table.
Google Fusion Table

They have the Nepali district shapefiles

Nepal Shapefile

What it will eventually work like

We start by merging the excel table with the shapefile

mergeNext After zooming out to the desired level and area we exported or published.

select publish

In the publishing options we copied the HTML and Javascript

copy html and javascript

Once there we pasted the files into jsfiddle to start editing them.

jsfiddle1Let us start my adding a two dropdown lists.

Do this by adding a form html tags to the bottom right before the </html> line

 <label>Data Points </label>
 <select id="Coloumn">
 <option value="Total population">Total Population</option>
 <option value="Household">Number of Households</option>
 <option value="Population Density">Population per sq km</option>
 <option value="Population land ratioy">Population per Ha</option>
 <option value="Geographic Square Area">Geographic area per sq km</option>
 <option value="Sex Ratio">Male per 100 Female</option>
 <select id="county">
 <option value="Achham">Achham</option>
 <option value="Arghakhanchi">Arghakhanchi</option>
 <option value="Baglung">Baglung</option>
 <option value="Baitadi">Baitadi</option>
 <option value="Bajhang">Bajhang</option>

This is then what the code will look like

With dropdown menus


%d bloggers like this: