# # wikiloc.rb: plugin embedding trip map on wikiloc. # # Copyright (C) 2008 MUNEDA Takahiro # You can redistribute it and/or modify it under GPL2. # # derived from everytrail.rb, Copyright (C) 2008 TADA Tadashi # # Parameters: # @trip_id : your trip id # @measures : on/off # @maptype : M/S/H/T # @size : [width,height] # # Please see the following address about the details: # http://www.wikiloc.com/forum/posts/list/14.page # # ChangeLog: # 20080706: Initial release # 20080713: Change default parameters # def wikiloc( trip_id, measures = "off", maptype = "M", size = [500,400] ) size.collect! {|i| i.to_i } size[0] = 500 if size[0] == 0 size[1] = 400 if size[1] == 0 %Q|| end