Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7615467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:39:03+00:00 2026-05-31T02:39:03+00:00

i am referring to an Fusion Tables API Example „Update Query https://developers.google.com/fusiontables/docs/samples/change_query It’s is

  • 0

i am referring to an Fusion Tables API Example „Update Query“ https://developers.google.com/fusiontables/docs/samples/change_query
It’s is about a drop-down menu which alters the content of the layer upon the map.

I tried to rebuild the whole example on my own site, but i didn’t work out yet. I narrowed down possible mistakes and pitfalls to the part where the layer (with data from my google fusion table) gets initialized.
It looks like that in the google example:

    var layer = new google.maps.FusionTablesLayer({
      query: {
        select: locationColumn,
        from: tableId
      },
      map: map
    });

Here is the code which worked out for me in every of my own examples with fusion tables, except for the one shown above.

var layer = new google.maps.FusionTablesLayer(tableid)
layer.setMap(map);

Here is the link for the live code: http://krealeo12.appspot.com/

As i am new to this whole API and JavaScript thing, i can not distinguish why the first example doesn’t work and the second does?! What is the difference, and more important, what does it mean?

I am very thankful for every hint and advice!
J.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:39:04+00:00Added an answer on May 31, 2026 at 2:39 am

    This issue also confused me when I started using Fusion Tables. You will find many examples where deprecated methods are used:

    var layer = new google.maps.FusionTablesLayer(tableid)
    layer.setMap(map);
    layers.setQuery("select * from " + tableid + " where ridership > 5000");
    

    The first example you quote is the proper way to do it. What was most confusing is that you cannot combine the two approaches. E.g. last time I checked, the following will not work. The initial map will display fine but the query will not work.

    var layer = FusionTablesLayer(tableid);
    var layer.setOptions{
        query: {
         select: 'address',
         from: '198945',
         where: 'ridership > 5000'
      }
    });
    

    The proper way is described in the docs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm referring tothe datastore admin tool explained here: http://code.google.com/appengine/docs/adminconsole/datastoreadmin.html One way of backing up
Referring https://www.youtube.com/watch?v=xHXn3Kg2IQE . Can anybody provide source/links which implements such a design?
I am referring to the question: https://stackoverflow.com/a/575889/292291 If I use integers as the key,
referring to: http://pastebin.com/raHbAvRN My tables: Users:(id, lat, lon, ...) Favorites:(id, userId, prefId) my alias
referring to this question , I've decided to duplicate the tables every year, creating
referring to the code example of mine android Remote image Getting problem? how can
I am referring to music shares created by the Sonos Controller. http://www.sonos.com
I was referring to this http://developer.android.com/guide/topics/data/data-storage.html#filesInternal for write file in internal memory. Where do
Referring to the Codeigniter user guide at http://codeigniter.com/user_guide/helpers/form_helper.html , I cannot seem to figure
Referring to the below link: http://www.javaworld.com/javaworld/jw-11-1998/jw-11-techniques.html?page=2 The composition approach to code reuse provides stronger

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.