|
index > juli formatting > jmap(macro)
jmap - embed map in wiki page
\{jmap coordinate}
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;-)
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.
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)