Jump to content

Template:Scalehelper: Difference between revisions

From OpenGeofiction
link to the scale helper
 
use layer 5
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span class="plainlinks">[https://wiki.opengeofiction.net/util/map_scale.html?map=C/{{{zoom}}}/{{{lat1}}}/{{{lon1}}}&map2=OSM/x/{{{lat2}}}/{{{lon2}}} {{{label}}}]<sup>{{coord|name=ogf|latitude={{{lat1}}}|longitude={{{lon1}}}|zoom={{{zoom}}}}}∝{{coordosm|name=osm|latitude={{{lat2}}}|longitude={{{lon2}}}|zoom={{{zoom}}}}}</sup></span></includeonly>
<includeonly><span class="plainlinks">[https://wiki.opengeofiction.net/util/map_scale.html?map=5/{{{zoom}}}/{{{lat1}}}/{{{lon1}}}&map2=OSM/x/{{{lat2}}}/{{{lon2}}} {{{label}}}]<sup>{{coord|name=ogf|latitude={{{lat1}}}|longitude={{{lon1}}}|zoom={{{zoom}}}}}∝{{coordosm|name=osm|latitude={{{lat2}}}|longitude={{{lon2}}}|zoom={{{zoom}}}}}</sup></span></includeonly><noinclude>
<noinclude>
Generates an HTML link to the Scale Helper, along with OGF and OSM links.
Generates an HTML link to the Scale Helper, along with OGF and OSM links.
== Usage ==
== Usage ==

Latest revision as of 15:08, 25 November 2025

Generates an HTML link to the Scale Helper, along with OGF and OSM links.

Usage

{{scalehelper|
| label = required
| zoom  = required
| lat1  = required, OGF location
| lon1  = required
| lat2  = required, OSM location
| lon2  = required
}}

Example

{{scalehelper|zoom=16|lat1=20.72411|lon1=86.71824|lat2=38.88928|lon2=-77.00961|label=Gobras Capitol vs US Capitol}}

Gobras Capitol vs US Capitol ogfFile:Openstreetmap logo.svg osm