Content deleted Content added
→Bug: incorrect marker position: new section |
→Bug: incorrect marker position: oops- rampant northernism! |
||
Line 770:
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/sandbox
|coord = {{coord|-52.8|-71.3}}
|zoom = 7
Line 782:
}}
{{clear}}
{{OSM Location map/sandbox
|coord = {{coord|-56.8|-65.3}}
|zoom = 7
Line 794:
}}
{{clear}} [[User:Ftrebien|Fernando Trebien]] ([[User talk:Ftrebien|talk]]) 04:27, 6 August 2025 (UTC)
: Great troubleshooting, and it turns out there is an embarrassing solution. I solved this issue in the first rewrite ... but didn't notice my 'correction factor' had assumed a positive latitude value - disgraceful case of northernism which you (and @ChaseKiwi) will be right to condemn! At present the solution (math.abs) is only on the sandbox. I will have a look around for any potential unwanted outcomes, but am hopeful it should only improve rather than break things, so expect to implement in due course.
: 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)
|