Difference between revisions of "Template talk:Tracklog"

From Geohashing
(multiple tracklogs: new section)
Line 2: Line 2:
  
 
I like that! Could there be a way to control the size of the window? --[[User:SastRe.O|SastRe.O]] ([[User talk:SastRe.O|talk]]) 16:30, 25 February 2020 (UTC)
 
I like that! Could there be a way to control the size of the window? --[[User:SastRe.O|SastRe.O]] ([[User talk:SastRe.O|talk]]) 16:30, 25 February 2020 (UTC)
 +
 +
:The height seems to be hard-coded to be 600 pixels, but the width is 100% of the parent element's width. So, if you put it inside a <code>&lt;div&gt;</code> element to which you specify a fixed or resizeable width, you can at least control the width. See the embedded tracklog below for an example. &#x2015;&nbsp;[[User:Kripakko|Kripakko]] ([[User talk:Kripakko|talk]]) 18:15, 29 January 2024 (UTC)
  
 
== multiple tracklogs ==
 
== multiple tracklogs ==
  
 
Is it possible to display tracks of multiple hashers on the same map? [[User:Arlo|Arlo]] ([[User talk:Arlo|talk]]) 00:13, 26 March 2020 (UTC)
 
Is it possible to display tracks of multiple hashers on the same map? [[User:Arlo|Arlo]] ([[User talk:Arlo|talk]]) 00:13, 26 March 2020 (UTC)
 +
 +
:A late answer but regardless useful, I hope. Yes, it is possible if you combine the tracks into a single file (put several <code>&lt;trk&gt;</code> elements inside the <code>&lt;gpx&gt;</code> element). Minimal example below, or [[Media:2024-01-29_test_numbers.gpx|download GPX]]. You very likely can't change the colours of the tracks though, so it will get confusing if you have many criss-crossing tracks. &#x2015;&nbsp;[[User:Kripakko|Kripakko]] ([[User talk:Kripakko|talk]]) 18:15, 29 January 2024 (UTC)
 +
:<div style="width:600px; min-width:300px; height:600px; resize:horizontal; overflow:hidden; padding:4px">{{Tracklog|2024-01-29_test_numbers.gpx}}</div>

Revision as of 18:15, 29 January 2024

This initially did not work for me, I couldn't see the map. It turned out that my Adblocker (ublock origin) blocked the Iframe. Disabling it on both domains (geohashing.site & map.geohashing.site) fixed the issue. --Fippe (talk) 09:52, 24 February 2020 (UTC)

I like that! Could there be a way to control the size of the window? --SastRe.O (talk) 16:30, 25 February 2020 (UTC)

The height seems to be hard-coded to be 600 pixels, but the width is 100% of the parent element's width. So, if you put it inside a <div> element to which you specify a fixed or resizeable width, you can at least control the width. See the embedded tracklog below for an example. ― Kripakko (talk) 18:15, 29 January 2024 (UTC)

multiple tracklogs

Is it possible to display tracks of multiple hashers on the same map? Arlo (talk) 00:13, 26 March 2020 (UTC)

A late answer but regardless useful, I hope. Yes, it is possible if you combine the tracks into a single file (put several <trk> elements inside the <gpx> element). Minimal example below, or download GPX. You very likely can't change the colours of the tracks though, so it will get confusing if you have many criss-crossing tracks. ― Kripakko (talk) 18:15, 29 January 2024 (UTC)