Note that there are some explanatory texts on larger screens.

plurals
  1. POfusion tables map - how to display the infowindows further down on the google map?
    primarykey
    data
    text
    <p>I have made a map using multiple layers of fusion tables, some of it with the help last year of members on this forum (thank you!)</p> <p>Now I am redesigning it with an overhang above the top of the map, but the result is that the infowindows appear with their tops hidden underneath the overhang.</p> <p>What I want to do is push the infowindows down below the overhang. Here are a few things I've tried, that didn't work:</p> <p>** z-index in the css ** a border-top or margin-top in the css for the .googft-info-window ** and this line in the JS:</p> <pre><code> pixelOffset: e.pixelOffset (100,100) </code></pre> <p>which only results in the absence of the infowindow when a marker/polygon is clicked.</p> <p>I think the solution is probably in the pixelOffset, but I am no programmer and can't figure out how to write the code. </p> <p>Here is a very stripped-down version of my project (just two of the eight layers) which I think illustrates the problem:</p> <pre><code> &lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt; &lt;html xmlns:fb="http://ogp.me/ns/fb#"&gt; &lt;head&gt; &lt;meta name="viewport" content="initial-scale=1.0, user-scalable=no"&gt; &lt;meta http-equiv="content-type" content="text/html; charset=UTF-8"&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;layer test parklotproject&lt;/title&gt; &lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt; function initialize() { var map = new google.maps.Map(document.getElementById('map-canvas'), { center: new google.maps.LatLng(43.651541,-79.371006), zoom: 9, mapTypeId: google.maps.MapTypeId.ROADMAP }); var infoWindow = new google.maps.InfoWindow(); // Initialize the first layer var firstLayer = new google.maps.FusionTablesLayer({ query: { select: 'Location', from: '1bkYbC7wZRrvWELw96g3mcwa9mGwSI-auSu9wP70' }, map: map, suppressInfoWindows: true }); google.maps.event.addListener(firstLayer, 'click', function(e) { windowControl(e, infoWindow, map); }); // Initialize the second layer var secondLayer = new google.maps.FusionTablesLayer({ query: { select: 'Location', from: '1Zw6q0HhqWPtorfs-7FmLzP_mabUz326W_OuCTQE' }, map: map, suppressInfoWindows: true }); google.maps.event.addListener(secondLayer, 'click', function(e) { windowControl(e, infoWindow, map); }); } // Open the info window at the clicked location function windowControl(e, infoWindow, map) { infoWindow.setOptions({ content: e.infoWindowHtml, position: e.latLng, pixelOffset: e.pixelOffset }); infoWindow.open(map); } google.maps.event.addDomListener(window, 'load', initialize); &lt;/script&gt; &lt;style type="text/css"&gt; BODY { margin-top : 0px; margin-left : 20px; background-color : #ffffff; } body, td, th { letter-spacing : 1px; line-height : 140%; font-family : Verdana, "Trebuchet MS", Arial, Helvetica, sans-serif; font-size : 13px; } html { overflow-y: scroll; } #welcomecontrols { position: relative; z-index: 20; width: 100%; opacity: .8; background-color : #ffffff; } #map-canvas{ top:10px; position:absolute; clear:none; z-index:1; padding: 0px; margin: 0px; height: 600px; left: 20px; width: 96%; } .googft-info-window{ background-color:white; text-align:left; z-index: 1000; height:400px; width:590px; overflow: auto; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="welcomecontrols"&gt; &lt;table width="100%" border="0" cellspacing="0" cellpadding="0"&gt; &lt;tr&gt; &lt;td valign="bottom"&gt; &lt;h1&gt;&lt;span style="color:#333333; font-size:15px;"&gt;Welcome to&lt;/span&gt;&lt;br&gt; &lt;span style="letter-spacing:2px; color:#D2691E; font-size:22px;"&gt;&lt;b&gt;The Toronto Park Lot Project&lt;/b&gt;&lt;/span&gt;&lt;/h1&gt; &lt;/td&gt; &lt;td width="10" align="right" valign="top"&gt;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td colspan="1" valign="top"&gt; &lt;p&gt;&lt;b&gt;an exploration of the earliest days of the TOWN OF YORK, founded 1793 by &lt;nobr&gt;John Graves Simcoe,&lt;/nobr&gt; first Lieutenant-Governor of Upper Canada&lt;/b&gt;&lt;br&gt; &lt;i&gt;(The Town of York was incorporated 1834 as the City of Toronto.)&lt;/i&gt;&lt;br&gt; &amp;nbsp;&amp;nbsp;&lt;/p&gt; &lt;/td&gt; &lt;td align="left" valign="top"&gt;&amp;nbsp;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; &lt;div id="map-canvas"&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>Any suggestions on how to solve this? Thank you. Wendy</p>
    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.
    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