Showing posts with label Google Fusion Tables. Show all posts
Showing posts with label Google Fusion Tables. Show all posts

Wednesday, August 24, 2011

Everyone's Moving South in Boulder



The 2010 U.S. census must now hold the record as the most mapped census of all time. We've been posting maps about the census all year on Google Maps Mania (check the census tab) - and they still keep on coming.



Boulder County Community Foundation has used Fusion Tables to map population changes in Boulder between the 2000 and 2010 censuses. The map seem to show a distinct pattern of a dwindling population in the north of the city and a growing population in the south.



The map also shows vehicle registration data in different parts of the city and allows you to view the locations of Boulder schools.



Boulder Trends



________________

Saturday, August 13, 2011

Putting Vancouver on the Map



The Vancouver Sun has put together a great series of 21 interactive Google Maps looking at all aspects of life in the city based on the 2006 census. Metro Vancouver Mapped uses Google Fusion Tables to create heat maps that explore answers given by residents in the 2006 census.



The maps examine the demographic differences in the city and allow you to see in which areas residents have the best educational attainment, the best commute times and the highest property values etc.



Each map is accompanied by a brief analysis of the census results.



________________

Monday, July 18, 2011

Hydrothermal Vents on Google Maps


This is our second foray into subterranean (or should that be submarine) mapping today. However, whereas Greg's Cable Map maps the world's undersea telecommunications cables, Peter Aldhous' Google Map shows the locations of deep sea vents.

Peter's map displays all known hydrothermal vent fields. The map uses color-coded map markers to show active and inactive vents. The map also shows plate boundaries and exclusive economic zones.

Hydrothermal Vent Fields Map

Via: SmartPlanet

_________________

Thursday, July 14, 2011

Dying in Wisconsin


This Google Map lets you view the average life expectancy for Wisconsin men and women.

You can click on any Wisconsin county to view the life expectancy statistics for that county. Each county is shaded on the map so that you can also get a quick overview of which counties in the state have the highest and lowest life expectancy.

The map includes data from 1987, 1997 and 2007 and you can view how life expectancy has grown in each county over those twenty years.

Madison.com: Life Expectancy in Wisconsin

________________

Tuesday, July 5, 2011

Map Channels Adds Fusion Tables Support


Map Channels, the popular Google Maps creation tool, now lets you add data to a map from Google Fusion Tables.

In the four years that Map Channels has been running over 20,000 maps have been created by its users. It has proved popular with casual map makers and with major news organisations., including Fox News and CBC.

You can create a Google Map with Map Channels using data from a KML, a Google Spreadsheet, a GeoRSS feed, tab delimited text and now with a Google Fusion Table. You can see an example of a Map Channels created map with data provided by a Fusion Table in this Wikipedia Events Map.

Map Channels

_________________

Tuesday, May 17, 2011

California School Funding on Google Maps

A California School Funding Map Tool

The California budget crisis means that Californian schools are facing drastic cuts to their budgets. Parents for Great Education has used Fusion Tables and the Google Maps API to create this map to show the funding of schools in the state.

The map allows you to look at funding for school districts, by State Senate District or by State Assembly District. The map is color-coded to show the school district funding per student. If you click on the map you can view the state cuts per student, estimated cuts per student and the total cuts to the school district.

California School District Funding

This Google Map shows school district funding in California. Using the map it is possible to view funding levels in each district and also view the school district's academic performance.

If you click on a school district you can view details of the funding over the last three years together with a projection of the funding next year assuming there is no tax extension in California.

The map also displays State Senate districts. If you click on a Senate district you can view the name and party affiliation of the district Senator and their winning margin.

_________________

Wednesday, May 11, 2011

Google Maps, Fusion Tables & Elections

Canada & UK Post-Elections Round-up

Patrick Cain this week has spotted some post-election Google Maps from the Vancouver Sun and The Guardian.

In Canada the Vancouver Post's map looks at the loss of seats by the federal Liberal party in British Columbia, whilst The Guardian maps the results of the British referendum on the Alternative Voting system.

The Guardian's map shows how there was very little support for the Alternative Voting system outside of a few London boroughs, the university towns of Oxford and Cambridge and central Glasgow and Edinburgh.

_____________

Friday, March 11, 2011

Fusion Friday

Newspapers in particular seem to have embraced Fusion Tables as the data backend for Google Maps.

In the UK The Guardian seems very keen on Fusion Tables, especially on its Data Blog. The Guardian's Data Blog is a great source for data and the paper itself often creates Google Maps of the data.

A good example is this Google Map showing the carbon emissions for public buildings in England and Wales. The energy performance of more than 40,000 schools, hospitals and government departments are shown on the map.


The Carbon Footprint of Public Sector Buildings

In the USA The LA Times and The Texas Tribune have both used Fusion Tables to create maps to report on the 2010 Census.

The LA Times has produced a Google Map to show the 2010 census counts by California’s congressional districts. The map shows how many residents the 53 congressional districts are above or below the target 702,905 population.


2010 Census Counts by California’s Congressional Districts

The Texas Tribune, on the other hand, has created this Google Map to visualise the Texas population by race and Hispanic origin. The map displays the totals for each district, with darker colours representing higher rates of total population growth by race or Hispanic origin.


Texas Population By Race, Hispanic Origin

________________

Wednesday, March 9, 2011

Fusion Tables Google Maps Wizard

FusionTablesLayer Builder

The FusionTablesLayer Builder is a great little wizard for creating a Google Map from a Fusion Table.

To build your map all you need to do is add the table id of your Fusion Table and specify the name of the column holding your location data. That's all there is to it! FusionTablesLayer Builder will now create the html for your finished map.

The wizard does provide a number of other useful options. You can set the height and width of your Google Map. You can also set the centre location and the initial zoom level.

A really nice option also lets you add a search box for your map or a drop-down menu. You can even specify which column of your Fusion Table the search box or drop-down menu will use.

Here's an example map I created with FusionTablesLayer Builder in a matter of minutes. The example is a map of temperatures taken around the UK in December.

________________

Wednesday, February 2, 2011

Google Maps & Fusion Tables Hacks

I've been seeing a lot of good Google Maps recently that are using Google Fusion Tables to store the map date. Google Maps with Fusion Tables can contain bounding box and radius spatial queries. These features are built into the Google Maps API V3.

As well as these official features a number of developers have created some nice workarounds to add other features to Fusion Table driven Google Maps.

Map with Sidebar (demo map now removed)
This experimental map from the Natural History Museum includes a great sidebar that is also driven by Fusion Tables. Each entry loaded into the sidebar is also an active link which will open the information windows in the Google Map.

Custom Map Markers


This Google Project Hosting example uses the Google Visualization API with Fusion Tables to create a Google Map with custom map markers. Fusion Table maps use the default Google Maps map markers but this code example provides a neat hack to allow you to replace these with your own map marker images.

Animating Fusion Table Data


This is my own attempt to use Fusion Tables to create an animated Google Map. The map animates through the over 800 bombs dropped on London on the first night of the London Blitz.

There is an ugly flicker at the moment when each new marker is added that I'm working on trying to overcome.

Time Slider

Here is a Fusion Tables map that includes a two thumb time slider that allows you to load data onto the map from a specified date range. The Random Markers blog includes a couple of other examples of Fusion Table generated maps with time-line slider controls.

______________

Monday, January 17, 2011

Fusion Table Queries on Google Maps

London Teenage Murders 2005-2010

I'm a big fan of Google Fusion Tables and this Google Map of London's teenage murders over the last six years is a great example of the powerful query functions available with Fusion Tables.

The map allows you to view the locations of all of London's teenage murders from 2005 to 2010. You can query the map by year and also by age, gender and cause of death. After each query the Google Map uploads the relevant data from the Fusion Table dynamically.

The application also uses Fusion Tables to list the names of the victims beneath the map. A drop-down menu lets you select from any of the six years. The victims details for the selected year are then displayed below the map.

_____________

Friday, December 10, 2010

Google Map of Road Fatalities

British Road Casualties 2008 & 2009

Google Maps built with Fusion Tables can support huge amounts of data and can also now support spatial queries. This Google Map of British Road Casualties is an excellent example of a map using Fusion Tables to great effect.

The map shows the location of nearly 50,000 fatal and serious injuries on British roads for 2008 & 2009. The map also makes great use of queries. It will load the nearest 100 results for any searched location and the map also reloads the nearest markers on the fly as you pan the map around.

As well as these spatial queries it is possible to query the results shown by year of serious injury or fatality.

________________

Saturday, November 20, 2010

More Fusion Tables Spatial Queries

UK Charities Map

The Daily Telegraph newspaper in the UK has produced a nice Google Map of UK Charities using Fusion Tables. The map displays the location of 150,000 charities in England and Wales.

One of the most amazing features of Fusion Tables with Google Maps is that it can cope with so many markers. However there are times that you wouldn't want to overwhelm the map user with so many map markers. I therefore thought that this would be a good map to tweak to use the new spatial queries with Fusion Tables.

UK Charities Map Tweaked
Using the same Fusion Table data created for The Telegraph's map I have created this map that uses a spatial query to only show the closest 10 charities to the current map centre.

I think the map is a good example of how you can create a powerful store locator with Google Maps and Fusion Tables. As always feel free to view, copy and adapt the code as you want.

________________

Friday, November 19, 2010

Fusion Tables

Spatial Queries

The spatial queries that were recently added to Fusion Tables mean that it is now very easy to create a very powerful Store Locator using just Google Maps and Fusion Tables. If you have a Fusion Table that contains your store data you can easily create a Google Map that will load the stores within a defined area or load the nearest stores to a given location.

Using the bounding box spatial query you can load points within a predefined area. You can also use the 'distance' query to load the stores nearest to a given point.

Load Nearest Points

We can use the getCenter function to get the latitude and longitude at the centre of the map. It is then possible to load the nearest points of interest in our Fusion Table to this point. The following function will load the ten nearest points to the current centre of the map.

function loadNearest() {
layer.setQuery("SELECT Country FROM 188044 ORDER BY ST_DISTANCE(Country, LATLNG( " + map.getCenter().lat() +', '+ map.getCenter().lng() + ")) LIMIT 10");
}

We can then add a button to the map to call the function with

onclick="loadNearest()"

Bounding Box

It is now also possible to easily create a bounding box with Fusion Tables. Using a bounding box we can define an area on the map and load in all the points from a Fusion Table that fall within that area.

function boundingBox() {
layer.setQuery("SELECT Country FROM 188044 WHERE ST_INTERSECTS(Country, RECTANGLE(LATLNG(35.77, -12.57), LATLNG(66.6, 37.3)))");
}

We can add a button to the map to call the bounding box with:

onclick="boundingBox()"

This Spatial Queries demo shows the bounding box in action. To add the 'ditance' query just add the code I have outlined above.

________________

Thursday, November 11, 2010

Spatial Queries Added to Fusion Tables!

Google Fusion Tables now offers spatial queries. Using spatial queries, developers can find all features that are located within a given distance of a specified location, find all features that are located within a given bounding box, and find a given number of features closest to a location.



Bounding box queries take the form of:

SELECT * FROM 297050 WHERE ST_INTERSECTS(Address, RECTANGLE(LATLNG(37.2, -122.3), LATLNG(37.6, -121.9)))

Where 297050 is the key for your Fusion Table and the LATLNG coordinates represent the bounding box.

If you want to see how you can add buttons to a Google Fusion map that will load a spatial query I've created a quick example, World Crime Rates. This map shows world crime and homicide rates. The map has queries to view only countries with crime rates over certain figures. It also has two spatial queries - one to show results only from Europe and one that shows results from the Americas. The two spatial queries use the bounding box function.



You can learn more about the new spatial query offering in Fusion Tables in the Fusion Tables documentation.

Via: Search your geo data using spatial queries from Fusion Tables!

________________

Saturday, May 29, 2010

Fusion Tables & the Google Maps API

Version 3 of the Google Maps API has a Fusion Tables Layer class that allows you to create a Google Map from data held in a Google Fusion Table.

Map developers can use a Fusion Table to store location, line, polygon and associated data that they wish to display on a Google Map. Fusion Tables support an SQL like query language, which you can use to filter the features shown on a map. This means that a map developed from a Fusion Table can include some very powerful query features.

Unfortunately at the moment there isn't any information or support for adding a Fusion Table Layer in the Google Maps API v3 Tutorial. So, with the help of Soren from microformats.dk, I've put together this short tutorial which I hope will at least get you started creating a simple map with a Fusion Table Layer and a number of functions to query the data shown on the map.

Adding a Fusion Tables Layer to a Map
  • To add a Fusion Table to your map you need to ensure that the Fusion Table is set to public or to unlisted. To do this click on the 'Share' button in Fusion Tables and set the 'Visibility Options' to 'Public' or 'Unlisted'.
  • To add the Fusion Table to your map you need to know the id number of your table. The id number is the number at the end of the URL address of your Fusion Table. Here is an example of adding a Fusion Table Layer with an id number of '185419':
layer = new google.maps.FusionTablesLayer(185419, {
suppressInfoWindows: true
});
layer.setMap(map);

Examples:
Here are three examples of simple maps that have included Fusion Tables Layers. Each of the maps uses essentially the same javascript code. The only real difference in the three maps is the Fusion Tables id number - so that each map is using data from a different Fusion Table.

2474 Danish Churches

TFL Planned Bicycle Stations in London

The Beaches of Brazil



To get started creating your own map just copy and paste the html from any of the above maps and change the Fusion Table id number to the number of your own table.

WikiPedia Articles - This example from ubilabs has the added bonus of using the new Styled Maps function as well as a Fusion Table.

Querying a Fusion Tables Layer

Probably the most powerful feature of the Fusion Tables Layer in Google Maps is the ability to query the data in your table and show the results on a Google Map.



For example, have a look at this map of Public Library Funding in Denmark. The buttons at the bottom of the map let you query the data to show only those areas that spend more than 500 kr a year and areas with more than 50,000 citizens.

To query your Fusion Table and load the results onto your map you need to include a javascript function. The map above includes a function that queries the data to show only the entries in the table that have a number over 500 in the column headed 'Biblioteksudgifter2009'. Here is that function:

function updateMap() {
layer.setQuery("select kommune from 113681 where Biblioteksudgifter2009 > 500");
}

To call the javascript function the map uses a simple button.

Examples:

World Crime Rates - This example shows world crime and homicide rates. The map has included queries to view only countries with crime and homicide rates over certain figures.

mtbguru.com Slider Example - This example from mtbguru.com also uses a javascript function to query the data but uses a slider so that the user can adjust the variable to query.


It is possible to add more than one condition to a query. This map includes a time-line that allows the user to choose to view map markers relevant to ten year periods.

The query therefore needs two conditions. In the example below the function 'update' will load all the map markers that have a date bigger than 1900 and smaller than 1911.

function update() {
layer.setQuery("select Lat from 191236 where Date > 1900 and Date < 1911
}



I hope that this very brief tutorial provides you with enough information to help you get started creating your own Google Maps from Fusion Tables.

If you do create a map don't forget to submit the results to Google Maps Mania!


_____________

Blog Archive

 
Best Retirement Invesments