Note that there are some explanatory texts on larger screens.

plurals
  1. PORequest-URI Too Large (Fusion table layers Google Maps)
    primarykey
    data
    text
    <p>I am trying to put the fusion table layer data on my <code>Google Map</code> but I am getting an error <strong>Request-URI Too Large</strong>. I searched a lot but couldn't find how can I make it work either by POST method or something else. The problem is the <code>where clause</code> but I can't shorten the where clause. Is there anyone who can help me or guide me?</p> <p>Thanks in advance for any help.</p> <pre class="lang-js prettyprint-override"><code>layer = new google.maps.FusionTablesLayer({ map: googleMap, heatmap: {enabled: false}, query: { select: "col4", from: "tableID", where: "", }, styles: [{ polygonOptions: { fillOpacity: 0.3 } }, { where: "col0 in ('Jefferson','Pulaski','Los Angeles','Denver','Middlesex','New Castle','Duval','Pinellas','Lee','Broward','Fulton','Cobb','Ada','Tazewell','Cook','Marion','Hendricks','Putnam','Adams','Boone','Orleans','Plymouth','Baltimore','Washington','Macomb','Genesee','Oakland','Hennepin','Jackson','Shelby','Granite','Forsyth','Mecklenburg','Wake','Douglas','Gloucester','Passaic','Bernalillo','Sandoval','Clark','New York','Montgomery','Hamilton','Tulsa','Oklahoma','Multnomah','Lane','Chester','Philadelphia','York','Lehigh','Kent','Horry','Davidson','Travis','Harris','Dallas','Fairfax','Chesterfield','King','Brown','Laramie','Kalamazoo','Cabarrus','San Diego','Pennington','Richland','Weber','Ramsey','Hartford') AND col3 in ('AL','AR','CA','CO','CT','DC','DE','FL','GA','ID','IL','IN','WV','OH','KY','LA','MA','MD','MI','MN','MO','TN','MT','NC','NE','NJ','NM','NV','NY','OK','OR','PA','RI','SC','TX','VA','VT','WA','WI','WY','SD')", polygonOptions: { fillColor: '#ffffff', strokeColor: '#ff0000', fillOpacity: 0.3 } }], options: { styleId: 1, templateId: 2 } }); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload