Template:Map zoom/sandbox
Appearance
This is the template sandbox page for Template:Map zoom (diff). See also the companion subpage for test cases. |
This template uses Lua: |
Usage
[edit]{{Map zoom}} is used to generate the Open Street Map zoom level for an object.. The template accepts a number of (optional) parameters that describe the physical dimensions of an object:
- length_mi
- length_km
- width_mi
- width_km
- area_mi2
- area_km2
- area_acre
- area_ha
The template can accept parameters that describe the size of the object on the screen: |viewport_cm=
or |viewport_px=
.
The template also accepts geohack parameters to generate the zoom level:
- dim
- scale
- type (e.g., "mountain" or "city")
- population (for type="city" only)