Vés al contingut

Plantilla:OSM Location map/ArcText/ús

De la Viquipèdia, l'enciclopèdia lliure

Text en un arc

[modifica]

Aquesta subplantilla l'utilitza a {{OSM Location map}} per poder mostrar text que segueix un arc a través del mapa. En conjunció amb altres etiquetes, marques i característiques del mapa, permet que el text per a característiques geogràfiques més grans transmeti la sensació d'una àrea més àmplia o segueixi la corba d'un riu, serralada, línia de costa, etc. Això funciona completament per separat de les altres etiquetes en la plantilla. No s'adjunta a cap marca o punt, i no crea cap marca a pantalla completa. Requereix coordenades per a la ubicació de la primera lletra i paràmetres addicionals per a l'angle inicial, el radi de l'arc i l'espai entre lletres. La mida i el color del text també es poden especificar o heretar de la configuració predeterminada.

Blank starter-code for text on an arcs, with starter-examples for different arc-patterns.
| arc-coordA={{Coord|xxx|yyyy}}   <!-- coordinates of first letter -->
|  arc-textA=  <!-- Add your text here -->
| arc-angleA=  <!-- in degrees, -180 to 180. 0 will start as horizontal, -90 straight up, 90 straight down  -->
|   arc-gapA=  <!-- 1= a notional 'standard'. 0.2 is very tight, 10 is very wide--> 
|              <!-- negative gap will invert the letters and run the other way around the circle -->
| arc-radiusA= <!-- 1= a notional 'standard' 0.5 is quite a tight circle, 8 is so wide as to be almost flat -->
| arc-text-sizeA = <!-- standard font sizes. If undefined, default is 12 -->
| arc-text-colorA= <!-- sets text color. #000000 color hexes and standardised OSM Location map colors are accepted -->
| ellipse-factorA=1.0 <!-- 1= notionally circular, 0.5 to 1.0 will flattern top and bottom, above 1.0 flattens the sides -->
Details about using artc-text, with starter-examples for different arc-patterns.
The nature of the earth's coordinate system means that there will be some variation in an arc at different latitudes and at different zoom levels. The program makes corrections for this, but there will still be residual variation. Similarly, changes in radius will also have some effect on the gap size, with a larger radius opening out the gap somewhat. There will therefore need to be considerable trial and correction 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.
Shallow smile:
arc-angleA=-170
arc-gapA=-1.2
arc-radiusA=1.6
Deeper smile:
arc-angleA=-150
arc-gapA=-3
arc-radiusA=0.7
wide eyebrow:
arc-angleA=-20
arc-gapA=3
arc-radiusA=0.8
opening bracket (reading up):
arc-angleA=-110
arc-gapA=1.5
arc-radiusA=0.6
opening bracket (reading down):
arc-angleA=-60
arc-gapA=-2
arc-radiusA=0.5
closing bracket (reading up):
arc-angleA=120
arc-gapA=-1.5
arc-radiusA=0.8
closing bracket (reading down):
arc-angleA=60
arc-gapA=2.5
arc-radiusA=0.4