Hello everybody.
I'm trying to get a Map on my web site. 
I follow the instructions 
on 
http://cookbook.hobocentral.net/tutorials/50-integrating-google-maps-with-hobo 
but once I load the web page where I want the map it shows me only code:

div id="" style="width:100%;height:500px" ></div> <script 
type="text/javascript"> var map; window.onload = 
addCodeToFunction(window.onload,function() { if (GBrowserIsCompatible()) { 
map = new GMap2(document.getElementById("")); 
map.centerAndZoomOnPoints([new GLatLng(111.485132,-397.164202),new 
GLatLng(111.484132,-397.165202)]);map.addOverlay(addInfoWindowToMarker(new 
GMarker(new GLatLng(111.484632,-397.164702),{title : 
"1"}),"",{}));map.addControl(new GLargeMapControl()); map.addControl(new 
GMapTypeControl()); } }); </script> 

Can you help me to figure out what I'm doing wrong?

this is my dryml:

<index-page>
  <append-scripts:>
    <%= GMap.header(:with_vml => false, :host => request.host).html_safe  %>
  </append-scripts:>
  <top_page_nav: replace/>

  <collection: replace>
    <if>
      <% minmax_lat =  this.*.latitude.reject{|x| x.nil?}.minmax
      minmax_long = this.*.longitude.reject{|x| x.nil?}.minmax  %>
      <google-map name="maps" ne-lat="&minmax_lat[1] + 0.0005" 
ne-long="&minmax_long[1] + 0.0005" sw-lat="&minmax_lat[0] - 0.0005" 
sw-long="&minmax_long[0] - 0.0005" width="100%" height="500">
        <repeat>
          <marker if="&this.latitude and this.longitude" 
            lat="&this.latitude" 
            long="&this.longitude" title="&this.code" 
            info="&'<a href=' + object_url(this) + '><b>' + this.code + 
'</b></a>' + '<br/>' + this.site_name"/>
        </repeat>
      </google-map>
    </if>

    <table-plus: fields="this, site_name">
      <empty-message:>No sites match your criteria</empty-message:>
    </table-plus:>
  </collection:>  <bottom_page_nav: replace/>
</index-page>

thanks for your help

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to