* docs(wiki): correct the install and operations pages for 4.0.0 Quick Start passed docker an empty ENCRYPTION_KEY: an assignment prefix is not expanded on the same command line, so the server silently generated its own key instead of taking the one the page told you to set. The tag examples pinned to the 3.x line, the documented tmpfs size did not match the shipped compose file, and several .env values were described as reaching the container when compose never interpolates them. * docs(wiki): match the MCP reference to the registered surface The scope table was missing the whole Collections group and the totals said 27 scopes across 13 groups where the code registers 29 across 14. The Cloudflare link on the setup page pointed at an anchor on its own page instead of the heading on Troubleshooting. * docs(wiki): correct the plugin and admin pages Three links to Plugin-Development carried a .md suffix, which does not resolve on the wiki. The admin pages described tabs, permissions and storage behaviour that had moved on. * docs(wiki): bring the feature pages back in line with the app Costs still documented the old panel, where categories could be added, renamed, reordered and deleted; they are fixed now and the panel is a day-grouped ledger with settlements. Trip sharing, journeys, maps, packing, reservations and the account pages had all drifted in the same way. * docs(wiki): cover the pages the first pass did not reach The MCP catalog listed 168 of the 201 registered tools; the settlement tools and rate_place were missing here and the Collections family from the addon page. Several resource rows claimed a trips:* scope where the handler asks for trips:read. * docs(wiki): tighten the corrections a review picked apart The audit-log resource is the row id, not the credential id; an admin password reset does not bump password_version the way the page implied; and a few of the new paragraphs described behaviour more confidently than the code supports. * docs(wiki): fix what a last read-through caught Costs shows every figure in your display currency, not the trip's, and an expense with no payer still counts against the members it is split between. Studio's cutoff is a 1024px viewport rather than phones alone, and the Integrations tab is gated on the providers an admin has configured. * docs(wiki): the last few the review caught A passkey satisfies the MFA policy everywhere except the WebSocket handshake, which still asks for TOTP, so a passkey-only account under that policy gets no live updates. Mobile optimizes a day from two places, not three. The ctx.db row carried an unescaped pipe that split the table, and the Backups table linked with a wiki link whose pipe did the same.
5.9 KiB
Map Settings
The Map tab controls which map engine and tile source TREK uses in the Trip Planner and Journey maps.
Note: The Atlas view always uses Leaflet regardless of this setting.
Where to find it
Open the user menu in the top navigation bar, select Settings, then the Map tab. Unlike the General tab, changes here are not saved as you make them — click Save Map when you are done.
Map provider
Choose the rendering engine:
| Provider | Description |
|---|---|
| Leaflet | Classic 2D renderer. Works with any raster tile URL. No token. |
| Mapbox GL (Experimental) | Vector tiles with 3D buildings and terrain support. Requires a Mapbox access token. |
| MapLibre GL | Vector tiles from OpenFreeMap. No access token required — this is the reason to pick it over Mapbox GL. |
Each GL provider stores its style in its own slot (mapbox_style for Mapbox GL, maplibre_style for MapLibre GL), so switching providers never clobbers the other one's style.
Leaflet — tile source
When Leaflet is selected, pick a preset or enter a custom tile URL.
Built-in presets:
| Name | URL |
|---|---|
| OpenStreetMap | https://tile.openstreetmap.org/{z}/{x}/{y}.png |
| OpenStreetMap DE | https://tile.openstreetmap.de/{z}/{x}/{y}.png |
| CartoDB Light | https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png |
| CartoDB Dark | https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png |
| Stadia Smooth | https://tiles.stadiamaps.com/tiles/alidade_smooth/{z}/{x}/{y}{r}.png |
You can also type any XYZ tile URL directly into the text field.
Admin: The admin can set a default map tile URL for all new users via the User Defaults tab in the Admin Panel. See Admin-Panel-Overview.
Mapbox GL — access token and style
Enter your public token (pk.*) from mapbox.com → Access tokens.
Required scopes are:
- STYLES:TILES
- STYLES:READ
- FONTS:READ
- DATASETS:READ
- VISION:READ
If Mapbox GL is selected but no token is saved, the map area shows an empty state with a prompt to configure the token under Settings → Map → Mapbox GL.
Built-in style presets:
| Style | Tags |
|---|---|
| Mapbox Standard | 3D, Apple-like |
| Standard Satellite | 3D, Satellite |
| Streets | 3D, Classic |
| Outdoors | 3D, Terrain |
| Light | 3D, Minimal |
| Dark | 3D, Dark |
| Satellite | 3D, Satellite |
| Satellite Streets | 3D, Satellite |
| Navigation Day | 3D, Apple-like |
| Navigation Night | 3D, Dark |
You can also enter a custom mapbox://styles/USER/ID URL directly.
3D Buildings & Terrain
Enables pitch and 3D buildings on all styles. Mapbox Standard and Standard Satellite ship their own building volumes, so TREK adds no extrusion layer there; every other style gets one injected. Terrain elevation (DEM-based height) is additionally applied on Satellite, Satellite Streets and Outdoors; Standard Satellite brings its own terrain from Mapbox and is left alone. The remaining styles get buildings but no terrain — including plain Mapbox Standard, whose built-in terrain TREK switches off — because the elevation data would cause route lines to visually drift away from the HTML place markers.
High Quality Mode (Experimental)
Enables antialiasing and globe projection for sharper edges. May impact performance on lower-end devices.
MapLibre GL — style
MapLibre GL renders OpenFreeMap vector tiles and needs no token at all, so there is no token field on this provider — just a style.
Built-in style presets:
| Style | URL |
|---|---|
| OpenFreeMap Liberty (default) | https://tiles.openfreemap.org/styles/liberty |
| OpenFreeMap Bright | https://tiles.openfreemap.org/styles/bright |
| OpenFreeMap Positron | https://tiles.openfreemap.org/styles/positron |
You can also type any https://tiles.openfreemap.org/… style URL. A style that is not an OpenFreeMap URL is rejected and replaced with Liberty when you save.
The 3D Buildings & Terrain and High Quality Mode toggles are Mapbox-only and are not shown for MapLibre GL.
Where a map opens
There is no default map center or zoom setting — it was removed in v3.4.0. Instead, every map works out its own opening camera from the places it is about to draw, so a trip in Japan opens on Japan instead of starting on the world view and then flying across the planet.
For each map, TREK takes the coordinates it is given and computes the center and zoom that frame them all:
- Several places — the camera fits their bounding box. The zoom is capped (16 on Leaflet, 15 on the GL renderers) so a tight cluster does not open absurdly far in, and the center is taken in projected (Mercator) space rather than as an average of the latitudes, so the northernmost place does not fall out of frame.
- A single place (or several stacked on the same spot) — there is no extent to fit, so it opens at city level: zoom 12 on Leaflet, 11 on the GL renderers.
- Places spanning the date line — MapLibre GL and Mapbox GL wrap the world, so a trip covering Fiji and Samoa is framed as the 10°-wide arc it really is. Leaflet does not wrap, so it takes the plain west-to-east span instead.
- Side panels — chrome overlaying the map shifts the center, so the places stay inside the part of the map you can actually see.
- No usable coordinates — a brand-new trip with nothing placed yet has nothing to frame, so the map falls back to a world view (center
0, 0at zoom 2).
The small map preview on this settings page is the one exception: it stays on a fixed city (Paris, zoom 16) so you can judge label density, 3D buildings and satellite texture. It is not a setting and no real map opens there.
