Sha256: cf300b962d8cc0b94fd93945c982a5baaa40c36691d60155a68f4cee4ef1470f

Contents?: true

Size: 1.17 KB

Versions: 1

Compression:

Stored size: 1.17 KB

Contents

#mapsearch
  %span
    Loading...

%script{:src=>"http://maps.google.com/maps?file=api&v=2&key=#{Caboodle::Site.google_maps_api_key}", :type=>"text/javascript"}
%script{:src=>"http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-msw&key=#{Caboodle::Site.google_maps_api_key}", :type=>"text/javascript"}
:javascript
  window._uds_msw_donotrepair = true;
%script{:src=>"http://www.google.com/uds/solutions/mapsearch/gsmapsearch.js?mode=new", :type=>"text/javascript"}
:javascript
  var localSearch;
  function LoadMapSearchControl() {
    var options = {
      zoomControl : GSmapSearchControl.ZOOM_CONTROL_ENABLE_ALL,
      title : '#{Caboodle::Site.title}',
      url : '#{request.host}',
            idleMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM+1,
            activeMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM+1
    }
         
    var center = new Object(); 
    center.lat = #{@locations.first.latitude}; 
    center.lng = #{@locations.first.longitude};
    localSearch = new GSmapSearchControl(
      document.getElementById("mapsearch"),
      center,
      options
    );
  }
  $(document).ready(function(){LoadMapSearchControl()});

%h2
  Search for something in the local area

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
caboodle-0.2.13 lib/caboodle/kits/googlelocal/views/googlelocal.haml