Content deleted Content added
m →Bug: incorrect marker position: fix link |
→Map mismatch at mobile APP view: more confusion |
||
(8 intermediate revisions by 4 users not shown) | |||
Line 1:
{{Permanently protected}}
Testing an example map within the lede
{{OSM Location map
|coord = {{coord|69.1061|15.8038}}
|zoom = 9
|width = 380
|height = 480
|float = right
|scalemark=50
|mini-locator=Oslo in Norway 2024.svg, top left,136px150px, 50%,17%
|label1 = Andøya Space Centre
|mark-coord1 = {{coord|69.2944|16.0198}}
|mark-size1 = 7
|label-pos1=left
|label2 = Andenes
|mark-coord2 = {{coord|69.3159|16.1211}}
|shape2=squareD
|mark-size2=11
|shape-color2=dark grey
|label-pos3=left
|label3 = Bleik
|mark-coord3 = {{coord|69.2739|15.9621}}
|mark-title3 = [[Bleik]]
|shape3=square
|mark-size3=8
|shape-color3=dark grey
|label-pos4=left
|label4 = Andøya Spaceport ^Orbital Pads
|mark-coord4 = {{coord|69.1087|15.5887}}
| label5 = '''ANDØYA'''
|label-spacing5 = 12.2
| label-pos5 = centre
| label-color5 = dark grey,60
| label-size5 = 14
| label-angle5 = -55
| mark-size5 = 0
| mark-coord5 = {{coord|69.076|15.822}}
|label-pos6=right
|label6 = Risøyhamn
|mark-coord6 = {{coord|68.9718|15.6384}}
|mark-title6 = [[Risøyhamn]]
|shape6=square
|mark-size6=8
|shape-color6=dark grey
| label7 = Skogvoll ^Nature ^Reserve
| label-height7 = 85
| label-pos7 = centre
| label-color7 = dark leaf,80
| mark-size7 = 0
| mark-coord7 = {{coord|69.1620|15.8917}}
| label8 = HINNØYA
|label-spacing8 = 3.2
| label-pos8 = centre
| label-color8 = grey,80
| mark-size8 = 0
| mark-coord8 = {{coord|68.9260|15.7462}}
| mark-title8 = [[Hinnøya]]
| label9 = Kvasstinden ^(705m)
| shape9=itriangle
|shape-color9=soft green
| label-pos9 = top
| label-color9 = dark leaf,80
| mark-size9 = 12
| mark-coord9 = {{coord|68.9302|15.4827}}
| mark-title9 = [[Kvasstinden]]
| label10 = Norwegian ^Sea
|label-spacing10 = 2.2
| label-pos10 = centre
| label-color10 = blue
| mark-size10 = 0
| mark-coord10 = {{coord|69.167|15.5991}}
| mark-title10 = none
| arcA = Andfjorden,68.9347,16.0236,12px, blue, -80deg, 2.5, 0.62
| arcB = Gavlfjorden,68.9225,15.3644,12px, blue, -95deg, 1.5, 0.62
| arcC = Risøysundet, 68.8890,15.554,11px, blue, 121deg, -1.5, 0.52
}}
{{clear}}
== Preparing to go live with replacement for the wiki-template version ==
Line 770 ⟶ 859:
Markers that are not exactly in the map center are offset from the correct position, and in some cases, the offset can be quite large. In the two examples below, a marker with exactly the same coordinate parameter value is displayed more than 10 km from the correct position. The direction of the offset depends on the marker's position relative to the map center. In both cases, when opening the map in full screen, the marker is displayed at the correct position.
{{OSM Location map
|coord = {{coord|-52.8|-71.3}}
|zoom = 7
Line 782 ⟶ 871:
}}
{{clear}}
{{OSM Location map
|coord = {{coord|-56.8|-65.3}}
|zoom = 7
Line 797 ⟶ 886:
: Only dots on the edges of the map, at close-to-polar latitudes will show much difference. As to why it needs a correction, I don't know. The values used were derived by trial and error, and your examples show that there is still scope for a slight improvement, which I will take the opportunity to have a look at. [[User:RobinLeicester|RobinLeicester]] ([[User talk:RobinLeicester|talk]]) 22:33, 6 August 2025 (UTC)
::{{reply to|RobinLeicester}} {{Thank}} a lot for fixing it so quickly! --[[User:Ftrebien|Fernando Trebien]] ([[User talk:Ftrebien|talk]]) 22:55, 9 August 2025 (UTC)
:::{{tick}} I was unable to find any unwanted outcomes, so have gone live with the correction. Thanks for reporting. [[User:RobinLeicester|RobinLeicester]] ([[User talk:RobinLeicester|talk]]) 15:51, 11 August 2025 (UTC)
::::Yes appreciated. At 45 degrees south which is southern NZ it was only a couple of pixels out so minor repositioning of some Arc labels will be done for ideal map clarity. [[User:ChaseKiwi|ChaseKiwi]] ([[User talk:ChaseKiwi|talk]]) 08:50, 12 August 2025 (UTC)
== Map mismatch at mobile APP view ==
I have noticed that the mobile app view has a fixed width, so the labels, points or whatever there is in the map is not shown in the correct position, but relative to the position it should have if the map had the original width. [[User:Theklan|Theklan]] ([[User talk:Theklan|talk]]) 07:25, 25 August 2025 (UTC)
: This is confusing. On my phone it was breaking above 330px when viewed as the first item in my own Sandbox, but trying it just now, it works correctly when shown within the sub-section below.
:Two examples, the same map at 320px and 380px wide. [[User:RobinLeicester|RobinLeicester]] ([[User talk:RobinLeicester|talk]]) 21:48, 29 August 2025 (UTC)
:: Wierdly, I am not able to replicate the problem at all on this page now. The map behaves correctly. But the same 380px map is still showing wrongly at [[User:RobinLeicester/sandbox|my sandbox]]. I am at a loss on this. [[User:RobinLeicester|RobinLeicester]] ([[User talk:RobinLeicester|talk]]) 22:18, 29 August 2025 (UTC)
{{OSM Location map
|coord = {{coord|69.1061|15.8038}}
|zoom = 9
|width = 330
|height = 480
|float = right
|scalemark=50
|mini-locator=Oslo in Norway 2024.svg, top left,136px150px, 50%,17%
|label1 = Andøya Space Centre
|mark-coord1 = {{coord|69.2944|16.0198}}
|mark-size1 = 7
|label-pos1=left
|label2 = Andenes
|mark-coord2 = {{coord|69.3159|16.1211}}
|shape2=squareD
|mark-size2=11
|shape-color2=dark grey
|label-pos3=left
|label3 = Bleik
|mark-coord3 = {{coord|69.2739|15.9621}}
|mark-title3 = [[Bleik]]
|shape3=square
|mark-size3=8
|shape-color3=dark grey
|label-pos4=left
|label4 = Andøya Spaceport ^Orbital Pads
|mark-coord4 = {{coord|69.1087|15.5887}}
| label5 = '''ANDØYA'''
|label-spacing5 = 12.2
| label-pos5 = centre
| label-color5 = dark grey,60
| label-size5 = 14
| label-angle5 = -55
| mark-size5 = 0
| mark-coord5 = {{coord|69.076|15.822}}
|label-pos6=right
|label6 = Risøyhamn
|mark-coord6 = {{coord|68.9718|15.6384}}
|mark-title6 = [[Risøyhamn]]
|shape6=square
|mark-size6=8
|shape-color6=dark grey
| label7 = Skogvoll ^Nature ^Reserve
| label-height7 = 85
| label-pos7 = centre
| label-color7 = dark leaf,80
| mark-size7 = 0
| mark-coord7 = {{coord|69.1620|15.8917}}
| label8 = HINNØYA
|label-spacing8 = 3.2
| label-pos8 = centre
| label-color8 = grey,80
| mark-size8 = 0
| mark-coord8 = {{coord|68.9260|15.7462}}
| mark-title8 = [[Hinnøya]]
| label9 = Kvasstinden ^(705m)
| shape9=itriangle
|shape-color9=soft green
| label-pos9 = top
| label-color9 = dark leaf,80
| mark-size9 = 12
| mark-coord9 = {{coord|68.9302|15.4827}}
| mark-title9 = [[Kvasstinden]]
| label10 = Norwegian ^Sea
|label-spacing10 = 2.2
| label-pos10 = centre
| label-color10 = blue
| mark-size10 = 0
| mark-coord10 = {{coord|69.167|15.5991}}
| mark-title10 = none
| arcA = Andfjorden,68.9347,16.0236,12px, blue, -80deg, 2.5, 0.62
| arcB = Gavlfjorden,68.9225,15.3644,12px, blue, -95deg, 1.5, 0.62
| arcC = Risøysundet, 68.8890,15.554,11px, blue, 121deg, -1.5, 0.52
}}
{{clear}}
{{OSM Location map
|coord = {{coord|69.1061|15.8038}}
|zoom = 9
|width = 380
|height = 480
|float = right
|scalemark=50
|mini-locator=Oslo in Norway 2024.svg, top left,136px150px, 50%,17%
|label1 = Andøya Space Centre
|mark-coord1 = {{coord|69.2944|16.0198}}
|mark-size1 = 7
|label-pos1=left
|label2 = Andenes
|mark-coord2 = {{coord|69.3159|16.1211}}
|shape2=squareD
|mark-size2=11
|shape-color2=dark grey
|label-pos3=left
|label3 = Bleik
|mark-coord3 = {{coord|69.2739|15.9621}}
|mark-title3 = [[Bleik]]
|shape3=square
|mark-size3=8
|shape-color3=dark grey
|label-pos4=left
|label4 = Andøya Spaceport ^Orbital Pads
|mark-coord4 = {{coord|69.1087|15.5887}}
| label5 = '''ANDØYA'''
|label-spacing5 = 12.2
| label-pos5 = centre
| label-color5 = dark grey,60
| label-size5 = 14
| label-angle5 = -55
| mark-size5 = 0
| mark-coord5 = {{coord|69.076|15.822}}
|label-pos6=right
|label6 = Risøyhamn
|mark-coord6 = {{coord|68.9718|15.6384}}
|mark-title6 = [[Risøyhamn]]
|shape6=square
|mark-size6=8
|shape-color6=dark grey
| label7 = Skogvoll ^Nature ^Reserve
| label-height7 = 85
| label-pos7 = centre
| label-color7 = dark leaf,80
| mark-size7 = 0
| mark-coord7 = {{coord|69.1620|15.8917}}
| label8 = HINNØYA
|label-spacing8 = 3.2
| label-pos8 = centre
| label-color8 = grey,80
| mark-size8 = 0
| mark-coord8 = {{coord|68.9260|15.7462}}
| mark-title8 = [[Hinnøya]]
| label9 = Kvasstinden ^(705m)
| shape9=itriangle
|shape-color9=soft green
| label-pos9 = top
| label-color9 = dark leaf,80
| mark-size9 = 12
| mark-coord9 = {{coord|68.9302|15.4827}}
| mark-title9 = [[Kvasstinden]]
| label10 = Norwegian ^Sea
|label-spacing10 = 2.2
| label-pos10 = centre
| label-color10 = blue
| mark-size10 = 0
| mark-coord10 = {{coord|69.167|15.5991}}
| mark-title10 = none
| arcA = Andfjorden,68.9347,16.0236,12px, blue, -80deg, 2.5, 0.62
| arcB = Gavlfjorden,68.9225,15.3644,12px, blue, -95deg, 1.5, 0.62
| arcC = Risøysundet, 68.8890,15.554,11px, blue, 121deg, -1.5, 0.52
}}
{{clear}}
|