Template:OSM Location map/ArcText
Text on an arc
ArcText is a facility to place text on an arc within {{OSM Location map}}:
How to use arc-text, with starter-examples for different arc-patterns. | ||||||||
---|---|---|---|---|---|---|---|---|
Below are some 'starter values' for different patters, but having selected your basic version, trial and correction will still be needed to get the shape and effect desired. As a general rule, identify the coordinates of the required start-point, then choose a starter-pattern from the selection below, and then adjust parameters to fit the requirement of the map. Paste the settings that are nearest to your needs into the template code, and adjust as required.
Three sets of ArcText parameters are available, demoted A, B and C | ||||||||
Shallow smile: <mapframe width="200" height="100" zoom="15" longitude="-4.3341" latitude="53.6146" mapstyle="osm-intl" frameless="true">[
]</mapframe> ![]()
200m 220yds S h a
l
l o w S m i l e <maplink zoom="16" class="no-icon" frameless="1" latitude="53.6146" longitude="-4.3341" text="'"`UNIQ--templatestyles-00000003-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000005-QINU`"'"> </span>">
[
{"type": "FeatureCollection", "features": [
"properties": { "title": ".", "description": " 0.1,0.1", "marker-symbol": "-number-F536146433410301", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [0.1,0.1] } }
<syntaxhighlight lang="wikitext">| arc-coordA = Coordinates: Missing latitude |
arc-textA = | arc-text-sizeA = | arc-text-colorA = | arc-angleA = -170 | arc-gapA = -1.2 | arc-radiusA = 1.6</syntaxhighlight> | ||
Deeper smile: <mapframe width="200" height="160" zoom="15" longitude="-4.3351" latitude="53.6146" mapstyle="osm-intl" frameless="true">[
]</mapframe> ![]()
200m 220yds D e e
p
e r S m i l e <maplink zoom="16" class="no-icon" frameless="1" latitude="53.6146" longitude="-4.3351" text="'"`UNIQ--templatestyles-00000009-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-0000000A-QINU`"'"> </span>">
[
{"type": "FeatureCollection", "features": [
"properties": { "title": ".", "description": " 0.1,0.1", "marker-symbol": "-number-F536146433510301", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [0.1,0.1] } }
<syntaxhighlight lang="wikitext">| arc-coordA = Coordinates: Missing latitude |
arc-textA = | arc-text-sizeA = | arc-text-colorA = | arc-angleA = -150 | arc-gapA = -3.5 | arc-radiusA = 0.4</syntaxhighlight> | ||
wide eyebrow: <mapframe width="200" height="100" zoom="15" longitude="-4.3341" latitude="53.6146" mapstyle="osm-intl" frameless="true">[
]</mapframe> ![]()
200m 220yds E y e
b
r o w <maplink zoom="16" class="no-icon" frameless="1" latitude="53.6146" longitude="-4.3341" text="'"`UNIQ--templatestyles-0000000E-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-0000000F-QINU`"'"> </span>">
[
{"type": "FeatureCollection", "features": [
"properties": { "title": ".", "description": " 0.1,0.1", "marker-symbol": "-number-F536146433410301", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [0.1,0.1] } }
<syntaxhighlight lang="wikitext">| arc-coordA = Coordinates: Missing latitude |
arc-textA = | arc-text-sizeA = | arc-text-colorA = | arc-angleA = -20 | arc-gapA = 3 | arc-radiusA = 0.8</syntaxhighlight> | ||
opening bracket (reading up): <mapframe width="200" height="150" zoom="15" longitude="-4.3341" latitude="53.6146" mapstyle="osm-intl" frameless="true">[
]</mapframe> ![]()
200m 220yds o p e
n
i n g b r a c k e t ( u p ) <maplink zoom="16" class="no-icon" frameless="1" latitude="53.6146" longitude="-4.3341" text="'"`UNIQ--templatestyles-00000013-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000014-QINU`"'"> </span>">
[
{"type": "FeatureCollection", "features": [
"properties": { "title": ".", "description": " 0.1,0.1", "marker-symbol": "-number-F536146433410301", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [0.1,0.1] } }
<syntaxhighlight lang="wikitext">| arc-coordA = Coordinates: Missing latitude |
arc-textA = | arc-text-sizeA = | arc-text-colorA = | arc-angleA = -110 | arc-gapA = 1.5 | arc-radiusA = 0.6</syntaxhighlight> | ||
opening bracket (reading down): <mapframe width="200" height="200" zoom="15" longitude="-4.3341" latitude="53.6146" mapstyle="osm-intl" frameless="true">[
]</mapframe> ![]()
200m 220yds o p e
n
i n g b r a c k e t ( d o w n <maplink zoom="16" class="no-icon" frameless="1" latitude="53.6146" longitude="-4.3341" text="'"`UNIQ--templatestyles-00000018-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000019-QINU`"'"> </span>">
[
{"type": "FeatureCollection", "features": [
"properties": { "title": ".", "description": " 0.1,0.1", "marker-symbol": "-number-F536146433410301", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [0.1,0.1] } }
<syntaxhighlight lang="wikitext">| arc-coordA = Coordinates: Missing latitude |
arc-textA = | arc-text-sizeA = | arc-text-colorA = | arc-angleA = -60 | arc-gapA = -2 | arc-radiusA = 0.5</syntaxhighlight> | ||
closing bracket (reading up): <mapframe width="200" height="200" zoom="15" longitude="-4.3341" latitude="53.6146" mapstyle="osm-intl" frameless="true">[
]</mapframe> ![]()
200m 220yds c l o
s
i n g b r a c k e t ( u p ) <maplink zoom="16" class="no-icon" frameless="1" latitude="53.6146" longitude="-4.3341" text="'"`UNIQ--templatestyles-0000001D-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-0000001E-QINU`"'"> </span>">
[
{"type": "FeatureCollection", "features": [
"properties": { "title": ".", "description": " 0.1,0.1", "marker-symbol": "-number-F536146433410301", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [0.1,0.1] } }
<syntaxhighlight lang="wikitext">| arc-coordA = Coordinates: Missing latitude |
arc-textA = | arc-text-sizeA = | arc-text-colorA = | arc-angleA = 120 | arc-gapA = -1.5 | arc-radiusA = 0.8</syntaxhighlight> | ||
closing bracket (reading down): <mapframe width="200" height="200" zoom="15" longitude="-4.3341" latitude="53.6146" mapstyle="osm-intl" frameless="true">[
]</mapframe> ![]()
200m 220yds c l o
s
i n g b r a c k e t ( d o w n <maplink zoom="16" class="no-icon" frameless="1" latitude="53.6146" longitude="-4.3341" text="'"`UNIQ--templatestyles-00000022-QINU`"'<span class="rt-commentedText tooltip tooltip-dotted " title="'"`UNIQ--nowiki-00000023-QINU`"'"> </span>">
[
{"type": "FeatureCollection", "features": [
"properties": { "title": ".", "description": " 0.1,0.1", "marker-symbol": "-number-F536146433410301", "marker-size": "medium", "marker-color": "#AA1205" }, "geometry": {"type": "Point", "coordinates": [0.1,0.1] } }
<syntaxhighlight lang="wikitext">| arc-coordA = Coordinates: Missing latitude |
arc-textA = | arc-text-sizeA = | arc-text-colorA = | arc-angleA = 60 | arc-gapA = 2.5 | arc-radiusA = 0.4</syntaxhighlight> | ||
Blank starter-code for text on an arcs, with starter-examples for different arc-patterns. | ||||||||
arc-coordA=Coordinates: Unable to parse latitude as a number:xxx {{#coordinates:}}: invalid latitude |
arc-textA= | arc-angleA= | arc-gapA= | arc-radiusA= | arc-text-sizeA = | arc-text-colorA= | ellipse-factorA=1.0
</syntaxhighlight> | |
This template now works independently of the zoom and latitude values being used. Unlike the original version of this template, which had some variation in an arc at different latitudes and at different zoom levels. The program will produce the same arc, gap size etc, regardless of location and zoom level. Changes in radius continues to have an effect on the gap size, with a larger radius opening out the gap somewhat, due to the way the arc and spacing are calculated. |
This sub-template is used by {{OSM Location map}} to provide a facility to place text that follows an arc across the map. In conjection with other labels, markers and map features, this allows text for larger geographic features to convey a sense of a broader area, or to follow the curve of a river, mountain range, coastline, etc. This works entirely separately from the other labels in the template. It does not attach itself to any mark or dot, and does not create any fullscreen markers. It requires coordinates for the location of the first letter, and additional parameters for the starting angle, radius of arc and gap between letters. Text size and color can also be specified, or inherited from Default settings.