Today we will have a look at the "Fusion Table" Layer example. But before we start with the actual code, we will have a look at what Fusion Table is. Google Fusion Table is a free service for sharing and visualizing data online. It allows you to share data, merge data from multiple tables into interesting derived tables, and see the most up-to-date data from all sources. There is a lot of documentation about Google Fusion Table available on the web. You can visit their home page or the Google Research Blog to gather more information about Fusion Tables.
Let us have a look at the following code. The code is very short and simple to understand!
The few things to look out for in the above code are:
I have used a ready-made publicly shared Fusion Table. You can also create your own Fusion Table and share it with the world! If you have any queries regarding this example or Fusion Tables leave a comment! Till then happy mapping!
Let us have a look at the following code. The code is very short and simple to understand!
The few things to look out for in the above code are:
- The manner in which mapTypeId has been specified! In other Google Maps API v3 examples, we have seen that we specify mapTypeID as ROADMAP, SATELLITE, etc. i.e., all the letters are in uppercase and not in quotes! However, in this example we are required to specify mapTypeID as 'roadmap' or 'satellite', etc.
- Look up the line layer = new google.maps.FusionTablesLayer(376526). The number in the brackets is the "dsrcid" of the fusion table. Every Fusion Table has this dsrcid and can be seen in the address bar when the Fusion Table is opened.
I have used a ready-made publicly shared Fusion Table. You can also create your own Fusion Table and share it with the world! If you have any queries regarding this example or Fusion Tables leave a comment! Till then happy mapping!
Hello, Thanks for the tutorial . It's simple to understand. I however wanted to know how i can merge my created table with the google's weather forecast table and select the only the data that i would want to feature on the site. My address is ojwangwachiaje@gmail.com.
ReplyDeleteI would really appreciate any help that you would accord to me
Hello, Thanks for the tutorial . It's simple to understand. I however wanted to know how i can merge my created table with the google's weather forecast table and select the only the data that i would want to feature on the site. My address is ojwangwachiaje@gmail.com.
ReplyDeleteI would really appreciate any help that you would accord to me