google-fusion-tables

Google Fusion Table SQL query where clause - only AND works, not OR?

老子叫甜甜 提交于 2019-12-04 09:53:36
My SQL query is: SELECT * FROM 1910640 WHERE stype='P' OR stype='ERC' OR stype='PERC' ORDER BY ST_DISTANCE(geometry, LATLNG(-0.12623619999999391,51.5001524)) LIMIT 6 This results in a "parseerror". If I replace OR with AND the query returns success: SELECT * FROM 1910640 WHERE stype='P' AND stype='ERC' AND stype='PERC' ORDER BY ST_DISTANCE(geometry, LATLNG(-0.12623619999999391,51.5001524)) LIMIT 6 Anyone else ran into this with Fusion Tables and have a solution/workaround? The API doc does imply only AND is allowed, which came as a big surprise to me. http://code.google.com/apis/fusiontables

Google Fusion Tables With Maps - Link Table field to Map Info Window

一个人想着一个人 提交于 2019-12-04 06:29:00
问题 I'm pretty much a rookie to using Google Fusion Tables/maps. We have a business directory with company names and addresses. I can get the geocoded map markers for each of their locations to display side by side with the Table "facility name" column. How do I code the facility names so the user can click the company/facility name and jump to the specific map marker info box for that facility in the map? Any help will be appreciated! 回答1: Once the user clicks on the company name, you can create

Adding Tabs in infowindows (googlemaps api, google fusion tables - kml import)

大憨熊 提交于 2019-12-04 06:14:38
问题 I feel like I'm getting close but missing something here. My source (polygon) data is in fusion tables, and I would like to create a 2 tab info window and call data from the table into it. Seen a bunch of examples (see: https://fusion-tables-users-group.googlegroups.com/attach/ec0975e69edcfb96/infowindow_tabs_5.html?pli=1&view=1&part=4 for one), so I have hope this is doable... My code (from the initialize function) is below. Right now, I am trying specifically to query the values (using e

Requests exceeding maximum URL length in Fusion Tables layer

笑着哭i 提交于 2019-12-04 05:27:33
问题 I'm using Fusion Tables layer on Google Maps. If I add a large where condition (where in 1000+ items), the layer does not load. <!DOCTYPE html> <html> <head> <meta content="initial-scale=1.0, user-scalable=no" name="viewport"> <meta charset="utf-8"> <title>GEO View</title> <style> html, body { height: 100%; margin: 0; padding: 0; } #map { height: 100%; zoom: 0.7; -moz-transform: scale(0.8); -moz-transform-origin: 0 0; } </style> </head> <body> <div id="map"></div> <script> var arr = ['37159']

Fusion table api map not showing styles after table update

筅森魡賤 提交于 2019-12-04 04:57:23
问题 I'm relatively new to the Fusion Tables Api and I am trying to create a simple web app using Fusion Tables and Google Maps Api. The application will be used about three times a day and each time a new set of data will be added to the table, replacing the old entries with new ones. So far, the application is working as expected, except for when changes are made to the fusion table. When I add or delete multiple rows from the table manually through the Fusion Table page and then return to my

Getting Google Apps Script to Authorize Fusion Table API

非 Y 不嫁゛ 提交于 2019-12-04 02:03:48
问题 I'm building a database that I hope to host in a Fusion Table and I'm developing some test functions for interfacing with the Fusion API. I'm using Google Apps Scripts and have relied heavily on other sources for this code. I've spent most of a day researching this problem and I am now stuck. When running addNewColumn() in the script editor, it gets to the "fetch ready" log entry (as I can see in the log), it then goes through the authentication process (every time), then just stops (and

Google maps infowindow events on open

ぃ、小莉子 提交于 2019-12-04 00:34:07
Hi I am using google fusion tables and google maps, the thing is that my markers show up correctly, but I want to insert some images into the inforwindow. So the thing is that I do queries to find the location of those markers, and those markers can have many categories (that is why i couldnt use a merged table). And when the user clicks on the marker, the infowindow displays and shows the info on the marker. It used to include just a text of the categories, but I want to retrieve the icon from each category to display that on the infowindow. The thing is that the second query takes longer

How to toggle a layer on/off using Google Maps API v3 and Fusion Tables?

孤街浪徒 提交于 2019-12-03 20:15:09
I am trying to make a map with multiple fusion table layers. Each fusion table layer will show the number of cartel-related homicides in a particular year (including the sum of all years). Since each layer has the same geometry, I need to let the user view one layer at a time. Is there a way to toggle each layer on/off using a radio button? I've searched for tutorials or examples for a few hours and have come up empty, so I'm hoping someone here can help. Here is a link to a copy of the map: https://mywebspace.wisc.edu/csterling/web/cartel%20map/index%20-%20practice.html Here is the code

Trouble with Get request from Google Fusion tables

不想你离开。 提交于 2019-12-03 17:07:55
I've been having trouble querying the Google Fusion Tables using an HTTP request. If I paste the URL from the query below in the browser, it comes back with a commas separated list. However, when I do this with the .get function as below, nothing comes back in the data parameter. I'm fairly new at this, so any help would be appreciated. function query(){ var jqxhr=$.get( "https://www.google.com/fusiontables/api/query?sql=SELECT+Address+FROM+914142+WHERE+IsCustomer+%3D+1", function success(data, textStatus){ alert(data);})} I was struggling with this a while back, and just this afternoon posted

Configuring heatmap overlays using Google Maps API

落爺英雄遲暮 提交于 2019-12-03 16:40:35
I'm trying to use the Google Maps API to generate a heatmap of locations. It works, but the result is not very useful, since the parts rendered by the heatmap are small are hard to see: Nothing in the docs suggest a way to expand the heatmap to render in larger blobs. Is there an undocumented way of doing this or is this just a limitation of the API? Do I just need more data points? I've pasted the code I'm using below. <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" /> <style type="text/css"> html { height: 100% } body {