< Template:Mapbox
Revision as of 13:52, 28 May 2022 by BelgianCat (talk | contribs) (Created documentation for MapBox template, as this is a very useful template, thanks Bouncer!))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Mapbox/doc

From Tycoon Gaming
when trying to edit the coordinates of a the mapbox, do not try to edit the section header, but edit the page instead. Trying to edit the section header, will change the base template itself instead.

This template (created by Bouncer#1861) creates a location header with a map and dot to indicate the location.

First we need the coordinates from the game. With some luck, the location might be in the transformer dump (provided by glitchdetector#0621): dump discord link Otherwise, use ttmap.eu

  • For the ttmap, zoom in all the way, right click on location and copy the coordinates link.

For both ways of obtaining the coordinates, we now need to apply a formula to them:
x = (x + 6646) / -13.905 + 200
y = (y + 4866) / 13.905 - 850

(you can simply use this spreadsheet for calculating)

Example

{{mapbox|x=-296.6199209|y=-485.3254225|color=255,125,0}}

would result in this:


Location

Map-dark.jpg

This mapbox example is used on the Pacific Standard Bank page, but is otherwise used extensively for the trucking related transformers. See (Special:WhatLinksHere/Template:Mapbox for all examples.