Changeset 33700
- Timestamp:
- 06/01/09 19:45:11 (4 years ago)
- Files:
-
- 1 modified
-
platform/tdiary/plugin/image_gps.rb (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
platform/tdiary/plugin/image_gps.rb
r33597 r33700 1 # image_gps.rb $Revision: 1. 6$1 # image_gps.rb $Revision: 1.7 $ 2 2 # 3 3 # 概要: … … 12 12 13 13 =begin ChangeLog 14 2009-06-01 kp 15 * モバイルモード時も世界測地系とする 14 16 2009-05-26 kp 15 17 * walk.eznavi.jpの場合のクエリを修正 … … 36 38 =end 37 39 38 require 'wgs2tky'39 40 require 'exifparser' 40 41 … … 67 68 68 69 eznavi = 'http://walk.eznavi.jp' 69 mapion = 'http://www.mapion.co.jp'70 70 google = 'http://maps.google.co.jp' 71 71 72 72 exif = ExifParser.new("#{@image_dir}/#{image}".untaint) rescue nil 73 73 74 el = nil75 nl = nil76 74 datum = nil 77 78 alt_org = alt 75 79 76 if exif 80 77 if @conf['image_gps.add_info'] … … 97 94 end 98 95 99 unless lat.nil? && @conf.mobile_agent?96 unless lat.nil? 100 97 lat,lon = tky2wgs(lat,lon) if datum == 'TOKYO' 101 98 end … … 107 104 else 108 105 if @conf.mobile_agent? 109 url = %Q[<a href="#{eznavi}/map?datum= #{datum=='TOKYO'?'1':'0'}&unit=0&lat=+#{lat}&lon=+#{lon}">]106 url = %Q[<a href="#{eznavi}/map?datum=0&unit=0&lat=+#{lat}&lon=+#{lon}">] 110 107 else 111 108 url = %Q[<a href="#{google}/maps?q=#{lat},#{lon}">]
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)