Module:Mapdraw/doc

From Wikivoyage
Jump to navigation Jump to search

Mapdraw

[edit]
  1. Initial BETA Module to draw circle
FunctionArgumentsArgument Description
p.circle(maplink or mapframe output can be very large) - built from a circle center point
latRequired latitude (see id below) - ie. lat=27.0
longRequired longitude (see id below) - ie. long=28.0
idWikidata ID to look up coordinates instead of using lat and long parameters
type"line" or "poly" default is "line"
groupgroup name to be used as "show" argument in <mapframe> - default is "circle"
titletitle to be used in <maplink> -- default is "A circle"
descdescription default is ""
radiusradius of a circle. - default is .5, MAX set at 10 -- and can not be less than or equal to 0 -- .00010 is about 40 meters, 3 is about 50 km
filldefault set to #ccef64 if missing
strokedefault set to #0000ff
mapframeTo create a mapframe insted of a maplink - use mapframe=y or mapframe=yes
markery or yes - create a marker - at input lat long
{{safesubst:#invoke:Mapdraw|circle|lat=22.35|long=70.07|type=poly|radius=10|fill=#000000|stroke=#0000cc}}