Module:Mapframe/doc: Difference between revisions

Content deleted Content added
Usage: explain some of parameter names
GeoJSON
 
Line 8:
;Standard usage:
:Just use {{tl|Maplink}}, which passes its parameters to this module's {{mono|main}} function as default.
::If a page has a rendering time by Lua of between 5 seconds and 10 seconds using {{tl|Maplink}} the use of the direct module call by syntax like: <code><nowiki>{{#tag:mapframe|[raw geo-jsonGeoJSON]|frameless=[1 for frame]|align=[left/right/center]|text=[caption]|width=[in px]|height=[in px]|latitude=[decimal degrees]|longitude=[decimal degrees]|zoom=[zoom factor]}}</nowiki></code> saves Lua over-head. An example of this substitution is at https://en.wikipedia.org/w/index.php?diff=970846012. Such code minimises the chances of hitting the ten second Lua timeout if the back-end servers are busy.
 
;From another module: