Difference between revisions of "Template talk:Tracklog"

From Geohashing
m
Line 3: Line 3:
 
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)
+
: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 (doesn't work on mobile for me though). &#x2015;&nbsp;[[User:Kripakko|Kripakko]] ([[User talk:Kripakko|talk]]) 18:15, 29 January 2024 (UTC)
  
 
== multiple tracklogs ==
 
== multiple tracklogs ==

Revision as of 18:17, 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 (doesn't work on mobile for me though). ― 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)