Content deleted Content added
→Map mismatch at mobile APP view: new section |
|||
(9 intermediate revisions by 4 users not shown) | |||
Line 763:
::::::See the sandbox for an example of the possibilities now we have separate raw functionality that can be used as well as all the old functionality. Some really high quality geology maps and abstractions that appeal to me have just become possible. [[User:ChaseKiwi|ChaseKiwi]] ([[User talk:ChaseKiwi|talk]]) 20:54, 24 June 2025 (UTC)
:::::::The map-raw= feature is now live and will hopefully show all your fabulous geology stuff. I was trying to find a way to include caption text on the fullscreen page, but it has defeated me. My method for providing the fullscreen link rules it out as they use the same 'text' parameter. All the other functionality, including multiple geojson templates should work. The square brackets issue is just because they are already included, to encompass other geoJson bits and pieces. I look forward to seeing some results. (Do you have a 'category' entry to show pages that are using the map data?) [[User:RobinLeicester|RobinLeicester]] ([[User talk:RobinLeicester|talk]]) 21:43, 24 June 2025 (UTC)
::::::::It might be worth dropping a note about all the recent changes on one of the village pumps, done some awesome stuff here and deserves to get used :D '''[[User:Seddon|Seddon]]''' <sup>[[User talk:Seddon|talk]]</sup> 21:59, 24 June 2025 (UTC)
::::::::I understand the feature with the automatic inclusion of inline square brackets before passed to the json parser. I do suggest you create a hidden category <code>OSM Location Map using raw Geojson</code> as this feature is not implemented in other module/template processing of Geojson in Wikipedia. [[User:ChaseKiwi|ChaseKiwi]] ([[User talk:ChaseKiwi|talk]]) 16:49, 5 July 2025 (UTC)
== Bug: incorrect marker position ==
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
|width = 800
|height = 800
|float = centre
|label = Ushuaia
|mark-coord = {{coord|-54.801944|-68.303056}}
|mark-title = Ushuaia
|mark-size = 5
}}
{{clear}}
{{OSM Location map
|coord = {{coord|-56.8|-65.3}}
|zoom = 7
|width = 800
|height = 800
|float = centre
|label = Ushuaia
|mark-coord = {{coord|-54.801944|-68.303056}}
|mark-title = Ushuaia
|mark-size = 5
}}
{{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 {{U|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)
::{{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)
|