title: show/hide map, starting with a hidden map (display: none)
body: <p>I haven't been able to load my page with a hidden map that I can then Show clicking on :toggle_map_button</p>
  
  <p>In my view a Show/Hide button and a map:</p>
  
  <pre><code> &lt;%= link_to_remote "Hide Map", :url =&gt;{:action =&gt; :toggle_map}, :method =&gt; :get, :loading =&gt; visual_effect(:toggle_slide, "marketplace_map", :duration =&gt; 1, :queue =&gt; 'front'), :html =&gt; {:id =&gt; "toggle_map_button", :class =&gt; "toggle_map_button"} %&gt;  
  
  &lt;%= gmaps(:map_options =&gt; {:detect_location =&gt; true, :center_on_user =&gt; true, :zoom =&gt; 6, :id =&gt; "marketplace_map" }, :markers =&gt; { "data" =&gt; @json }) %&gt;       
  </code></pre>
  
  <p>In my CSS file:</p>
  
  <pre><code>#maketplace_map
  {
     width: 100%;
     height: 400px;
     display: none; &lt;= this doesn't get to be set (when I check in HTML code with Bugzilla)
  }   
  </code></pre>
  
  <p>In my RJS file upon action :toggle_map:</p>
  
  <pre><code>page &lt;&lt; "document.getElementById('toggle_map_button').innerHTML =(document.getElementById('toggle_map_button').innerHTML == 'Show Map' ? 'Hide Map' : 'Show Map')"
  
  page.flash_msg(:notice_box, flash[:notice]) if flash[:notice]
  page.flash_msg(:error_box, flash[:error]) if flash[:error]
  
  flash.discard
  </code></pre>
  
  <p>The whole things works perfect when starting with a page showing the map. The toggle action does set display:none; correctly ...</p>
  
  <p>The issue is comes when starting with a hidden map and be able to click and slide it down.</p>
  
  <p>Any ideas?</p>
  
  <p>Cheers, </p>
  
  <p>Joel</p>