Sha256: 353b839112f29fd92b8b2955ea7cd587ceafdd70659469e5d74f32fad1b60ace
Contents?: true
Size: 1.82 KB
Versions: 13
Compression:
Stored size: 1.82 KB
Contents
index > juli formatting > \{!jmap(macro)} = NAME jmap - embed map in wiki page = SYNOPSIS \\{jmap coordinate} = 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;-) == Example This: \{jmap 35.546557,139.328501} will be: \{jmap 35.546557,139.328501} == 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. === 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)}
Version data entries
13 entries across 13 versions & 1 rubygems