Template:Mapbox/doc
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.
The game location must be converted to coordinates on the displayed map. You can either provide the original game coordinates, or apply the formula yourself and directly enter the computed coordinates.
Using original game location
{{mapbox | gamex = 5.1 | gamey = 225.9 | color = 225,125,0 }}
Using converted map locations
Both x and y coordinates need to converted using different formulas:
x = (x + 6646) / -13.905 + 200 y = (y + 4866) / 13.905 - 850
(you can simply use this spreadsheet for calculating)
{{mapbox | x = -296.6199209 | y = -485.3254225 | color = 225,125,0 }}
Location
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.