Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to hide loadingAnimation.gif in Thickbox...?
    primarykey
    data
    text
    <p>I'm new to jQuery Thickbox. I've implemented the following code:</p> <p>HTML:</p> <pre><code>&lt;a class="thickbox" href="javascript:void(0);" onclick="javascript:initMap(lat,lng,'htmlmsg',1);" &gt;map&lt;/a&gt; &lt;div id="show_map" style="display:none"&gt; &lt;div id="map_canvas"&gt;&lt;/div&gt; &lt;/div&gt; </code></pre> <p>JS:</p> <pre><code>function initMap(x,y,msg,flg){ var map = new GMap2(document.getElementById("map_canvas"),{size: new GSize(400,380)}); map.removeMapType(G_SATELLITE_MAP); map.removeMapType(G_HYBRID_MAP); var point = new GLatLng(x, y); var htmlMsg = msg; map.setCenter(point, 14); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); var baseIcon = new GIcon(); baseIcon.shadow = ""; baseIcon.iconSize = new GSize(20, 34); baseIcon.shadowSize = new GSize(37, 34); baseIcon.iconAnchor = new GPoint(9, 34); baseIcon.infoWindowAnchor = new GPoint(9, 2); baseIcon.infoShadowAnchor = new GPoint(18, 25); var letteredIcon = new GIcon(baseIcon); letteredIcon.image = "http://www.google.com/intl/en_ALL/mapfiles/marker.png"; markerOptions = { icon:letteredIcon }; var marker = new GMarker(point,markerOptions); GEvent.addListener(marker, "mouseover", function() { map.openInfoWindowHtml(point, htmlMsg); }); map.addOverlay(marker); if (flg==1){ map.openInfoWindowHtml(point, htmlMsg); } tb_show('Quick view','#TB_inline?height=400&amp;width=400&amp;inlineId=show_map',true); } </code></pre> <p>The issue is the 'loadingAnimation.gif' always visible on the thickbox, even after the google map gets completely loaded.</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.
    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