javascript - Google Maps cannot Load Properly due to CSS Tabs -


http://www.bchomescondos.ca/properties/?city=richmond&id=261681248 http://www.bchomescondos.ca/properties/?city=richmond&id=261704393

above sample links issue arising.

actual issue google map street view not appearing when street view tab clicked. @ first thought issue map script later found out (from of thread in stackoverflow) problem css tabs , how loaded.

somehow when roadmap tab active streetview not appearing , when streetview tab active roadmap appearing distorted.

told me have load tabs during page load simultaneously , hide tabs don't want appear initially. guess needs knowledge of js or jquery, don't have.

so, obliged if can me in this.

have used simple gumby framework create tabs. code , links follows.

<div class="row">     <div class="one columns"></div>      <section class="ten columns tabs" style="margin: 20px 0;">                  <ul class="tab-nav">             <li class="active"><a href="#">google map</a></li>             <li> <a href="#">street view</a></li>             <li><a href="#">walk score</a></li>         </ul>         <div class="tab-content active">             <div id="map-canvas" style="height: 400px; border: 0.5px solid #000;">             </div>         </div>        <div class="tab-content">             <div id="pano" style="height: 400px; border: 0.5px solid #000;"></div>         </div>         <div class="tab-content">             <div id="ws-walkscore-tile" style="height: 400px; border: 0.5px solid #000;"></div>         </div>         <script type='text/javascript' src='http://www.walkscore.com/tile/show-walkscore-tile.php'></script>                 </section>      <div class="one columns"></div> 



gumby tabs documentation

**i haven't added other inline css or js portion. if need other information, please let me know.

the map doesn't render size unknown since it's hidden. if can trigger code when map shown, following code fix issue:

google.maps.event.trigger(document.getelementbyid('pano'), 'resize');

as per: https://developers.google.com/maps/documentation/javascript/reference


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -