Git Product home page Git Product logo

fusion-tables-archive-visualizer's Introduction

Fusion Tables Archive Visualizer

Description

Visualize archived Fusion Tables from Google Drive.

Links

Development

Prerequisites

Make sure you have the following tools installed:

  • git
  • node
  • npm

Installation

After cloning the repository, install all dependencies:

npm install # install dependencies

Install the Google Cloud SDK and initialize it by running:

gcloud init

Configuration

Setup the gcloud to your project ID like this:

gcloud config set project my-project-id

Create an OAuth token for the client authentication in your Google Cloud Project. Set the client ID to the GOOGLE_SIGNIN_CLIENT_ID environment variable like this:

export GOOGLE_SIGNIN_CLIENT_ID="XXXXXXXXXXX.apps.googleusercontent.com"

Create a API key for Google Maps and Google Drive. Store that in an environment variable called API_KEY like this:

export API_KEY="my-key"

To help with environment variable handling on a project level, check out direnv.

Develop

Run the following command to start the visualizer on localhost:

npm start # start the visualizer

Deploy

Run the following command to deploy the application:

npm run deploy

Hosting

The project is hosted at AppEngine

fusion-tables-archive-visualizer's People

Contributors

donmccurdy avatar hundekoerper avatar pmast avatar ro-ka avatar russellquong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fusion-tables-archive-visualizer's Issues

Catch 403 error

There is a 403 error thrown most times:

image

It seems that this error is part of an additional request that we make… If this is the result of a regular request we should better catch it and keep the console clean.

Ignore rows with invalid geometry

Ignore all data rows that have no or invalid geometry.

The visualiser currently breaks when the geometry does have content which is not a valid geometry (e.g. random text).

It should ignore those rows as not all data is properly formatted.

Layer embeds?

Is there a way to combine two maps into one using this embed function with one as a base?

Visualization failing: HTTP 403 querying https://content.googleapis.com/drive/v3/files/...

Hi folks, I'm trying this generated visualization:

https://fusiontables-archive.withgoogle.com/geoviz#file=1yXbo2nzKfxO-gHqPpK0dVUEreOcrx2Mw&style=eyJtYXJrZXIiOnsiaWNvbiI6InNtYWxsX3JlZCJ9LCJwb2x5bGluZSI6eyJzdHJva2VDb2xvciI6eyJjb2xvciI6IiMwMGZmMDA4MCJ9LCJzdHJva2VXZWlnaHQiOnsid2VpZ2h0IjoxfX0sInBvbHlnb24iOnsiZmlsbCI6eyJjb2xvciI6IiNmZjAwMDA4MCJ9LCJzdHJva2VDb2xvciI6eyJjb2xvciI6IiM2NjY2NjZmZiJ9LCJzdHJva2VXZWlnaHQiOnsid2VpZ2h0IjoxfX19

It fails, with this HTTP request:

https://content.googleapis.com/drive/v3/files/1yXbo2nzKfxO-gHqPpK0dVUEreOcrx2Mw/export?mimeType=text/csv&alt=media&key=AIzaSyCgtL3Fk7hL1STga1tcP2HM8Lsm2U7Ca68

Returning HTTP 403, response payload:

{
 "error": {
  "errors": [
   {
    "domain": "global",
    "reason": "fileNotExportable",
    "message": "Export only supports Google Docs."
   }
  ],
  "code": 403,
  "message": "Export only supports Google Docs."
 }
}

The file is a big csv, too big for sheets, if that helps debug.

No geometry found

Hello, when I use the archive tool with my fusion table of about 1300 locations, the tool says "no geometry found." How to I get the tool to reproduce my map visualization?

Thanks,

Ryan

Embedding isssues

Hi, I'm not sure where else to ask this. I am trying to preserve some map projects I worked on in a class a few years ago. I am able to do the export and I can see the maps, but the embedding doesn't seem to work in Blogger or Google Sites (old or new) in any browser. Is there any way to get the embeds to work there? Or what easily accessible webplatform can I use otherwise?
On Blogger nothing shows up, on Google Sites (new) and some other HTML testing sites I only see an empty map. I have a working API key, with Google Maps and Google Drive API enabled and the underlying files are currently set to public.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.