Displaying attribute queries on fusion tables using google maps api

One can use the google maps api to retrieve selections from the data in Google Fusion Tables and display the result as web maps. For this demonstration, we will be using our schools table in Google Fusion. We will select point features on the table where the ‘Type’ attribute field has the value ‘pry’.

1

Below is the webmap displaying all the point features.

3

2. We write the code lines for the map of point features that fit the selection, explanations are in red.

Untitled - Notepad-001

Download the plain text file version of the source code:https://www.dropbox.com/s/f6ra0cfdk22qe4i/query%20attribute%20fields%20in%20fusion%20tables%20using%20google%20map%20api.txt?dl=0

5. The resultant map is shown on the screenshot below:

5

See live map here:http://htmlpreview.github.io/?https://github.com/mayotunde/google/blob/master/query%20fuison%20table

Thank you for following the blog

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s