Changeset 37252

Show
Ignore:
Timestamp:
04/22/10 01:57:09 (3 years ago)
Author:
drry
Message:
  • GoogleMap?」を「Google Maps」にしました。
  • ほか。
Location:
platform/tdiary
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • platform/tdiary/doc/ja/plugin/image_detail.txt

    r37251 r37252  
    1111  ファーストリリース 
    1212revision 1.1: 
    13  スマートフォン対応、その他 
     13  スマートフォン対応、その他 
    1414 
    1515インストール 
  • platform/tdiary/plugin/image_detail.rb

    r37251 r37252  
    1616  * スマートフォン対応 
    1717  * Google Maps API Keyが設定されていない場合はStaticMAPを生成しない 
    18   * リンク先をGoogleMapに統一 
     18  * リンク先をGoogle Mapsに統一 
    19192009-06-03 kp 
    2020  * first version 
     
    4242  if size then 
    4343    if size.kind_of?(Array) 
    44       size = " width=\"#{size[0]}\" height=\"#{size[1]}\"" 
    45        
     44      size = %Q[ width="#{size[0]}" height="#{size[1]}"] 
    4645    else 
    47       size = " width=\"#{size.to_i}\"" 
     46      size = %Q[ width="#{size.to_i}"] 
    4847    end 
    4948  else 
    5049    size = "" 
    5150  end 
    52    
     51 
    5352  exif = ExifParser.new("#{@image_dir}/#{image}".untaint) rescue nil 
    54    
     53 
    5554  google = "http://maps.google.co.jp" 
    5655 
     
    9392  img = %Q[<img class="#{place}" src="#{@image_url}/#{image}" alt="#{alt}" title="#{alt}" #{size}>] 
    9493  img_t = %Q[<img class="#{place}" src="#{@image_url}/#{image_t}" alt="#{alt}" title="#{alt}" #{size}>] 
    95    
     94 
    9695  url  = '' 
    9796  if @conf.mobile_agent? 
     
    132131    @conf['image_gps.google_maps_api_key'] = @cgi.params['image_gps.google_maps_api_key'][0] 
    133132  end 
    134    
     133 
    135134  <<-HTML 
    136135    <p> 
  • platform/tdiary/plugin/image_gps.rb

    r37250 r37252  
    1414=begin ChangeLog 
    15152010-04-21 kp 
    16   * リンク先をgoogleに統一 
     16  * リンク先をGoogleに統一 
    17172009-06-01 kp 
    1818  * モバイルモード時も世界測地系とする 
    19192009-05-26 kp 
    2020  * walk.eznavi.jpの場合のクエリを修正 
    21   * リンク先をgoogle map 
     21  * リンク先をGoogle Maps 
    2222  * wgs2tkyを使用しない 
    23232008-05-22 kp 
     
    2626  * いろいろ変更 
    27272006-03-28 kp 
    28   * cooperation with ALPSLAB clip 
     28  * cooperation with ALPSLAB clip! 
    29292006-03-27 kp 
    3030  * use exifparser 
    31312005-07-25 kp 
    32   * correct link url when access with mobile. 
     32  * correct link URL when access with mobile. 
    33332005-07-19 kp 
    3434  * MapDatum macth to WGS84 
    35352005-05-25 kp 
    36   * correct url link to mapion. 
     36  * correct URL link to Mapion. 
    37372005-05-24 kp 
    3838  * create link to http://walk.eznavi.jp when access with mobile. 
     
    6161  if size then 
    6262    if size.kind_of?(Array) 
    63       size = " width=\"#{size[0]}\" height=\"#{size[1]}\"" 
    64        
     63      size = %Q[ width="#{size[0]}" height="#{size[1]}"] 
    6564    else 
    66       size = " width=\"#{size.to_i}\"" 
     65      size = %Q[ width="#{size.to_i}"] 
    6766    end 
    6867  else 
    6968    size = "" 
    7069  end 
    71    
     70 
    7271  #m_map = 'http://m.google.com/maps' 
    7372  map = 'http://maps.google.co.jp' 
    7473 
    7574  exif = ExifParser.new("#{@image_dir}/#{image}".untaint) rescue nil 
    76    
     75 
    7776  datum = nil 
    78    
     77 
    7978  if exif 
    8079    if @conf['image_gps.add_info'] 
     
    9796  end 
    9897 
    99   unless lat.nil?  
     98  unless lat.nil? 
    10099    lat,lon = tky2wgs(lat,lon) if datum == 'TOKYO' 
    101100  end 
     
    120119    @conf['image_gps.add_info'] = @cgi.params['image_gps.add_info'][0] 
    121120  end 
    122    
     121 
    123122  <<-HTML 
    124123    <p>