Module talk:OSM Location map: Difference between revisions

Content deleted Content added
 
(2 intermediate revisions by the same user 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 804 ⟶ 893:
 
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 miserable. It seems to be fine as long as the base map is not too wide. On my phone it breaks above 330px, but is that a device-dependent thing? If so, what would be a recommended maximum width. The app appears to just chop the middle out of the map, and then (as described above) place all the CSS stuff relative to the new left corner. Chrome browser on my phone, by contrast, provides the whole map with horizontally scroll. Is the App now a stable platform, or is this something that has recently changed? Sorry - all I have is questions about why the App doesn't behave like the browser, and have no answers other than only use maps below (say) 300px, which breaks a lot of the 6,500 existing maps.
: 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 below, the same map at 320px and 380px wide. Wikipedia phone App shows (on my phone) the first made narrower, works correctly, the second, at its intended width, has massive dot-shift within the App. [[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}}