Sha256: 64c2deaf95eb2b02c8d0bb7a10273721173fb4e0b36585f18e0234727349ea87

Contents?: true

Size: 1.35 KB

Versions: 14

Compression:

Stored size: 1.35 KB

Contents

.googlelocal.page
  %nav.locations
    %ul
      - @locations.each do |loc|
        %li
          %a{:href=>"/near_me/#{loc.title.downcase.gsub(" ","-")}"}
            = loc.title
  #mapsearch
    %span
      Loading...

  %script{:src=>"http://maps.google.com/maps?file=api&v=2&key=#{@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=#{@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 : '#{title}',
        url : '#{request.host}',
              idleMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM+1,
              activeMapZoom : GSmapSearchControl.ACTIVE_MAP_ZOOM+1
      }
         
      var center = new Object(); 
      center.lat = #{@location.latitude}; 
      center.lng = #{@location.longitude};
      localSearch = new GSmapSearchControl(
        document.getElementById("mapsearch"),
        center,
        options
      );
    }
    $(document).ready(function(){LoadMapSearchControl()});

  %h2
    Search for something in the local area

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
caboodle-0.3.0 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.30 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.29 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.28 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.27 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.26 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.25 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.24 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.23 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.22 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.21 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.20 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.19 lib/caboodle/kits/googlelocal/views/near_me.haml
caboodle-0.2.18 lib/caboodle/kits/googlelocal/views/near_me.haml