jmap(macro)



  1. NAME
    1. SYNOPSIS
      1. DESCRIPTION
        1. Example
          1. How to customize
            1. For Japanese Google map

          Recent Updates
          tips
          2013/10/19
          juli formatting
          2012/10/20
          template(macro)
          2012/10/20
          template
          2012/10/20
          takahashi_method
          2012/10/20
          index
          2012/10/20
          i18n
          2012/10/20
          wikipedia(macro)
          2012/06/05
          jmap(macro)
          2012/05/23
          photo(macro)
          2012/05/15
          tag(macro)
          2012/05/15
          tutorial
          2012/05/15
          juli(1)
          2012/05/15
          je(1)
          2012/05/15
          juli_tb.rb(1)
          2012/04/12
          slidy
          2012/03/23
          tutorial/minutes_20110117
          2011/12/08
          release-note
          2011/12/08
          computing
          2011/12/08


          index > juli formatting > jmap(macro)

          1. NAME

          jmap - embed map in wiki page

          2. SYNOPSIS

          \{jmap coordinate}

          3. DESCRIPTION

          Juli jmap macro embeds map in wiki page.

          Another purpose is to provide I/F for the map. For example, currently Google map is used, but if Google map API/URL is changed, or Google may stop the map service, it is enough to change this plug-in only to another map service site so that it is not necessary to modify all of wiki pages which use jmap.

          coordinate format is as follows:

          coordinate ::= latitute,longtitude
          latitude   ::= DECIMAL
          longtitude ::= DECIMAL
          DECIMAL    ::= (floating decimal values like this: (|-)[0-9]+(|\.([0-9]+)

          (In short, google ll=... value format;-)

          3.1. Example

          This:

          \{jmap 35.546557,139.328501}

          will be:


          View Larger Map

          3.2. How to customize

          The HTML template for jmap macro can be defined at .juli/config file's "jmap" entry like this:

          jmap: '<iframe ... src="http://maps.google.co.jp/maps?q=%{coord}...</iframe>...'

          Where, %{coord} above will be replaced to the actual coordinate value in the macro calling.

          http://mapki.com/wiki/Google_Map_Parameters is very useful for this customization.

          3.2.1. For Japanese Google map

          Currently (as of 20012/05/23), Google map Japanese version can be set as follows:

          jmap:       '<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.jp/maps?q=loc:%{coord}&hl=ja&num=1&ie=UTF8&t=m&z=14&output=embed"></iframe><br /><small><a href="http://maps.google.co.jp/maps?q=loc:%{coord}&hl=ja&num=1&ie=UTF8&t=m&z=14&source=embed" style="color:#0000FF;text-align:left">大きな地図で見る</a></small>'

          index > juli formatting > jmap(macro)


          Get jj_juli at SourceForge.net. Fast, secure and Free Open Source software downloads | Generated by juli 1.17.01