Note that there are some explanatory texts on larger screens.

plurals
  1. POFusionTablesLayer hides the underlying map on a WordPress page
    primarykey
    data
    text
    <p>I'd like to display a Google Map overlaid with two Fusion Tables layers. The code below works perfectly if I just copy it into a text editor, save the file as <code>map.html</code>, and open it in my browser. But when I put it in a post on my WordPress-themed site, the underlying map is hidden by the Fusion Tables layers. Those layers aren't totally opaque: I can see both of them at the same time. I just cannot see the underlying map.</p> <p>Whenever I zoom or pan the map, the underlying map appears briefly before the Fusion Tables layers are drawn over it. I suspect that there is a style setting at fault. Do you know how to get the map to display properly?</p> <p>I'm using WordPress version 3.0.4 with the Gazette theme by woothemes; the site is <a href="http://www.wisconsinwatch.org" rel="nofollow">http://www.wisconsinwatch.org</a>.</p> <pre><code>&lt;script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=false"&gt;&lt;/script&gt;   &lt;div id="gmap" style="width:590px; padding-top:40px;height: 550px;"&gt; &lt;script type="text/javascript"&gt; var fracmap = new google.maps.Map(document.getElementById('gmap'), { center: new google.maps.LatLng(44.797709533120106, -90.43712582444374), zoom: 7, mapTypeId: 'hybrid' }); var layer0 = new google.maps.FusionTablesLayer({ query: { select: 'geometry', from: 2695847 }, }); layer0.setMap(fracmap); var layer1 = new google.maps.FusionTablesLayer({ query: { select: 'geometry', from: 2695779 }, }); layer1.setMap(fracmap); &lt;/script&gt; &lt;/div&gt; </code></pre> <p>Thanks!</p>
    singulars
    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.
 

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