Skip to content

sfbrigade/Mobile-Fusion-Tables

Repository files navigation

Mobile Fusion Tables

A mobile-ready template using Fusion Tables and jQuery Mobile, originally based on Derek Eder's Fusion Table Searchable Map Template.

This is an SF Brigade project for Code for America. Started by Mark Brenig-Jones, completed by Rego Sen, with contributions from Sidney Zhang and Andrew Byrne.

Demos

Here are some web apps that now use Mobile Fusion Tables:

Demo Using Your Own Fusion Table

Go to http://www.mobilefusiontables.com and enter your Fusion Table URL (or ID) to see what your data will look like with Mobile Fusion Tables.

(Note that you'll be seeing it with default settings- see below for customizing it to your own needs.)

Setup

To create your own web app with Mobile Fusion Tables:

  1. Clone this repository.
  2. Replace the FusionTable ID at the top of fusiontable_settings.js to point to your own table.

That's it. You now have a working site that's equivalent to the above demo. It uses your own table's data, title, description, and infobox content, with a search field or range slider for each column. Once you open the webpage on your device and hit "Add to Home Screen", you should have something that looks and feels like a mobile app.

If you want to make your app even sexier, explore the rest of the settings file to customize your content and behavior. See the "samples" folder to see how the above demos were customized.

Turn It Into A Native App

You can combine Mobile Fusion Tables with a wrapper like Phonegap to build a pure mobile app.

For example, here's the Android version of The Rider Scope app featured above.

Walkthrough

Here's what the main (map) page looks like. You can customize the contents of the infobox using Handlebars.

Map

There are four buttons for navigating:

  • Search: customizable search page for filtering and finding
  • List: shows results in a customizable list view
  • Nearby: takes you to your current location (you can opt-out of using current location in the settings file)
  • About: fill this with your custom description and links

By default, the search page gives you a range slider for every number/date column in your table, and a text field for every string column (plus an address for centering your search).

Default Search

You can customize your search page with drop-downs, overrides, and other options:

Custom Search

The address field lets you auto-complete an address:

Autocomplete

The list view shows the data / search results by row (whose contents you can also customize). Clicking on a row will take you back to the map and highlight the pin with an infobox.

List View

Get Involved

If you have a customization that you'd like to share here, we'd be happy to add it to the "samples" folder.

Please raise any issues or suggestions for improvement!

About

Turn your Fusion Table into a mobile-friendly searchable web app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •