google-fusion-tables

Styling fusion table markers with custom url icons?

泪湿孤枕 提交于 2019-12-09 23:20:06
问题 I want to style my fusion table markers based on a field in the fusion table. If I use default Google markers, the following code works: layer = new google.maps.FusionTablesLayer({ query: { select: 'bizCity', from: '1yfyijoeC3GwDnnLutBI8IFOH8y2mfZ8LJGUDly4' }, styles: [ {where: "'bizCatSub' = 'Antique & Classic Motorcycle Dealers'", markerOptions:{ iconName:"star"}}, // other landmarks {where: "'bizCatSub' = 'Other moto business'", markerOptions:{ iconName:"wht_pushpin"}}, //businesses {where

google fusion table- not able to color the layer in map after 5 colors

随声附和 提交于 2019-12-08 14:22:38
I am coloring country polygon with different colors in a layer depending on different condition. But after the five "where" conditions, it didnt detect the associated color. But uses the default color. Why is this happening? Below is my code: layer.setOptions({ query: { select: 'masterNarrative, countryName', from: tableId, where: where }, styles: [{ where: "masterNarrative= '72 virgins (houris)' ", polygonOptions: { fillColor: '#2daebf', fillOpacity: 0.5 } }, { where: "masterNarrative= 'Badr' ", polygonOptions: { fillColor: '#e33100', fillOpacity: 0.5 } }, { where: "masterNarrative=

How to use HTML or CSS to style an info window in Google Fusion Tables?

风流意气都作罢 提交于 2019-12-08 13:43:25
问题 I have created a KML map and uploaded to Fusion Tables where I am trying to customise the info box through their HTML code box. The info box contains a simple table with text and figures. Here is the code: <div class="googft-info-window" style="background-color:red" {description} </div> The info-window background will change colour to red, but the table does not (which is the {description} in the code above. Is there a way to style the table? I essentially want to change the color of the

Fusion Table - Zoom to Boundaries of Region

天涯浪子 提交于 2019-12-08 13:37:03
问题 I am creating a multiregion and district map which you can see here: http://vciregionmap.com/new/ It used this Fusion Table in the new version: https://www.google.com/fusiontables/DataSource?snapid=S587803AEqk It works great, the only thing it does not do and used to do in the old version - the code is in there but stopped working about 8 months ago. I need the legend to is zoom to the bounds of the region and district that you choose. I am unsure of how to get the map to zoom upon clicking

Google API Authorization when 'Executing the app as me.'

社会主义新天地 提交于 2019-12-08 13:31:31
问题 Over the last few months I have become familiar with OAuth2.0 authorization within google apps script but a recent anomaly has me confuzzled. I have a standalone web-app that acts as a front-end to a fusion table. The web-app is set to 'execute as' the script and fusion table owner and the fusion table grants view access to external users. The program detects authorization, prompts if needed, and uses refresh tokens if they're available. When run from the account that owns the script and

Is it possible to select which data to display in Google Maps info windows using check boxes?

旧巷老猫 提交于 2019-12-08 11:58:19
问题 I was wondering if it is possible to select what data/information you wish to have displayed in an Google Maps info window based on check box selection? I know that you can select layers using check boxes which can have their own info window, but this will be limited 5 layers thus limiting the number of selections to 5. I was thinking that if you create a custom info window then would you be able to chose to only show data respective to that selection and hide the other data normally

fusion table with sidebar

╄→гoц情女王★ 提交于 2019-12-08 11:50:10
问题 I am not sure what I am doing wrong but I am not able to get my markers or sidebar to show up. I am not sure what part I am missing or if I am just off in the syntax. If you could help I would so appreciate it. <!-- language: lang-js --> google.load('visualization', '1', {'packages':['table']}); var map; var markers = []; var infoWindow = new google.maps.InfoWindow(); function initialize() { var ak = new google.maps.LatLng(64.958056,-147.618333); map = new google.maps.Map(document

Suppress fusion table infowindow with multiple layers

大憨熊 提交于 2019-12-08 09:07:02
问题 I have a map with two fusion tables layers and am using suppressInfoWindows so that an infowindow from one layer is not left open when a user clicks on a marker from the other layer. This works fine using the below code: <script type="text/javascript"> var map; var infowindow; var layer; var tableid = MY FUSION TABLE ID; var layer2; var tableid2 = MY FUSION TABLE ID; function initialize() { map = new google.maps.Map(document.getElementById('map_canvas'), { center: new google.maps.LatLng(10,

Google Maps API - Zoom to Fusion Table Layer Query Results

a 夏天 提交于 2019-12-08 07:24:46
问题 Newbie to Stack Overflow posting/novice with Maps API - so I do not have enough "reputation" to post more than 2 links Working on a Google Maps API that accesses a Fusion Table (public setting) - https://www.google.com/fusiontables/DataSource?docid=13H4lBUCA1z_mdCJEyCalF0AKgIDtr_C7lIZzQ6D6 Would like it to zoom to the results of a query to the layer generated from a side bar menu. Have seen various examples/experimented with working from them as a starting point (looked at various posts here)

Gradient for Fusion Table Layer

杀马特。学长 韩版系。学妹 提交于 2019-12-07 19:12:23
问题 Can anyone explain why the gradient isn't working for the map below? <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html><head><title>Riks.txt - Google Fusion Tables</title> <style type="text/css"> html, body, #map_canvas { margin: 0; padding: 0; height: 100%; } </style> <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.7&sensor=false"> </script> <script type="text/javascript"> function initialize() { map = new google