class Juli::Macro::Jmap

generate Map HTML.

The purpose of this macro is to provide I/F for map. When map-site(like google) service is discontinued, or URL is changed, it is enough to change:

  1. .juli/config jmap entry or

  2. this macro implementation.

There is no need to modify all of wiki pages which use 'jmap' macro.

'J' of jmap stands for Juli. it is because 'map' in ruby is quite common method so that necessary to avoid name confusion.

Currently, Google map is used.

Constants

DEFAULT_TEMPLATE

Thank you, mapki.com/wiki/Google_Map_Parameters !!

Public Class Methods

conf_template() click to toggle source
# File lib/juli/macro/jmap.rb, line 25
      def self.conf_template
        <<EOM
# HTML template to draw map.  If not set, default defined at
# Juli::Macro::Jmap::DEFAULT_TEMPLATE is used.
# %{coord} in the template wiil be replaced to the actual 1st parameter.
#
#jmap: '#{DEFAULT_TEMPLATE}'
EOM
      end

Public Instance Methods

place_holder() click to toggle source
# File lib/juli/macro/jmap.rb, line 35
def place_holder; 'coord'; end