Related Demo script
Demo: Embed an Intensity Map on Blogger
Example of completed exercise
- Public data
- Make a fusion table
- Intensity Map visualization
- Embed a visualization (Blogger used as an example)
- Have a Google account
- Have a Blog on Blogger
Sign in to Google Fusion Tables
- Go to http://tables.googlelabs.com in your browser
- Optional: click through the Tour
- Sign in with your Google Account
- Need a Google Account? you can make one with any e-mail address by adding a password to it.
- Click the "Create a Google Account" link on the sign in page.
- You should now see a list of tables
Find public data
- Click "Public tables" to see data tables that Google Fusion Tables users have selected to make public.
- Search to find the table called "Total renewable Freshwater Supply"
- Click to open it.
- Optional: explore the attribution for the table under File > About
Create Intensity Map
- Click Visualize > Intensity map. Fusion Tables detects data types automatically.
- Optional: confirm the "Location" is "Country"
- Optional: confirm the "Value" is "Annual Renewable Water Resources"
Create a New Post in Blogger
- Go to http://www.blogger.com or http://<yourblogname>.blogspot.com in a new tab or new window.
- Sign in to your blog
- Click the "New Post" link in the upper bar
- Give the blog post a name (eg: "Map of Renewable Water")
Embed the Intensity Map
- In the new blog post, click "Edit HTML" to ensure you're in the scripting view
- On the Intensity Map page, click "Get embeddable code"
- Select all text in the text box that opens
- Tip: triple-click in the box, or click and type Control-A to Select All
- Copy to the clipboard
- Switch to the blog post, and paste into the post's text box.
- Optional: Add text before or after the map. Just avoid the content between the <script> tags.
- Click "Publish" to save and publish the post
- Click "View Post" link to see the result
Adjust default width in Blogger
The Intensity Map and other visualizations from Google Fusion Tables are wider than the default width of Blogger. To prevent Blogger from cutting them off on the right, change the default width of Blogger posts.
- Go into the "Layout" tab
- Click "Edit HTML"
- Download a copy of your current template just for back-up.
- Find the editable text box.
- Scroll through the content until you see "Outer Wrapper"
- Under "#outer-wrapper" change "width: 660px" to "width: 1000px"
- Under "#main-wrapper" change "width: 410px" to "width: 750px"
- Tip: if the numbers aren't precisely 660px and 410px to start with, don't worry.
- Click "Save Template" and view your blog post again.