Spedcord / map

ETS2 Map viewer

Home Page:https://map.spedcord.xyz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

map

ETS2 map viewer used by Spedcord

Query parameters

line:
Draws a line between the specified nodes
line=-100,4556.22;55,878;-45223.6,-1223,322

line_city:
Draws a line between two overlays
line_city=COLOR;FROM_CITY,FROM_OVERLAY;TO_CITY,TO_OVERLAY
line_city=Red;Berlin,service_ico;Magdeburg,gas_ico

force_zoom:
Locks the zoom into the specified value
force_zoom=8

goto:
Go to the specified coordinates
goto=X;Y;ZOOM (Zoom is optional)
goto=-4533567;5656;6

goto_city:
Go to the specified city
goto=CITY;ZOOM (Zoom is optional)
goto=Berlin;6

helga:
Draw a route that was generated by the Helga navigation service
helga=ROUTEID
helga=0123456789affe

Credits

Built with LeafletJS

Some code was copied from https://ets2.online/map/ets2 (:heart:)

gameCoordinateToImageCoordinate() by @Koenvh1

About

ETS2 Map viewer

https://map.spedcord.xyz

License:European Union Public License 1.2


Languages

Language:CSS 65.4%Language:JavaScript 30.8%Language:HTML 3.8%