<commit_before># Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
window.initJsMap = ->
  window.geopoint_search_map($("#gmpoint_location_address"))
  $("#geopoint_search_box_container input").keypress (e) ->
    if e.keyCode == 13 # enter
      window.geopoint_search_map($(@))      
  opts = 
    center: new google.maps.LatLng($('.data-location').data('latitude'), $('.data-location').data('longitude'))
    zoom: $('.data-location').data('zoom')
    mapTypeId: google.maps.MapTypeId.ROADMAP
    
    
  window.gmpoint_map = new google.maps.Map(document.getElementById("map_canvas"), opts)
  window.gmpoint_marker = new google.maps.Marker({position: opts.center, draggable: true})
  window.gmpoint_info_window = new google.maps.InfoWindow({})<commit_msg>fix for zoom<commit_after># Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
window.initJsMap = ->
  window.geopoint_search_map($("#gmpoint_location_address"))
  $("#geopoint_search_box_container input").keypress (e) ->
    if e.keyCode == 13 # enter
      window.geopoint_search_map($(@))
  
  zoom = $('.data-location').data('zoom')
  if $("#gmpoint_location_address").val() == ""
    zoom = 11
  opts = 
    center: new google.maps.LatLng($('.data-location').data('latitude'), $('.data-location').data('longitude'))
    zoom: zoom
    mapTypeId: google.maps.MapTypeId.ROADMAP
    
    
  window.gmpoint_map = new google.maps.Map(document.getElementById("map_canvas"), opts)
  window.gmpoint_marker = new google.maps.Marker({position: opts.center, draggable: true})
  window.gmpoint_info_window = new google.maps.InfoWindow({})
{'fraction_non_alphanumeric': 0.1446961894953656, 'fraction_numerical': 0.003089598352214212, 'mean_word_length': 4.567335243553009, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1447584', 'n_tokens_mistral': 616, 'n_tokens_neox': 603, 'n_words': 131}