Skip to content

3D view ​

A map can be shown in 3D: the plan lies flat and every area stands on it as a block, with walls in the area's colour. The top of each block carries what the flat map shows there — the plan, the area's colour and its label or logo. Markers stand upright on the blocks. Nothing has to be redrawn: the 3D view is built from the plan and areas the project already has.

Video: 3D view0:40

The 3D panel in the editor's left menu turns it on and sets how it looks. The editing canvas itself stays flat. Opening the panel switches the canvas to the 3D preview — the map as visitors see it — so every change is visible at once. The preview stays on in the other panels: click an area or a marker on the 3D map to open its editor and set its own height there. The map's 2D / 3D button switches between the 3D preview and the editing canvas; when the project shows no such button, a cube button in the editor's toolbar does it instead; starting to draw an area, a marker or a route path returns to editing too.

Settings ​

SettingWhat it doesDefault
Show the map in 3DTurns the 3D view on for this projectoff
TiltHow far the map leans back, 0–65°. 0° looks straight down17°
RotationTurns the map, −180–180°. Labels turn with it0°
Block heightHow tall the areas stand, 0.5–10 % of the plan's longer side4 %
Perspective0–3. Above 0 a block shows the side that faces the middle of the screen, so the visible sides change as the visitor moves the map. 0 leans every block the same way1
2D / 3D buttonPuts a button above the zoom controls: visitors switch between the flat map and 3D. Off — the map is always in 3D. With analytics on, each switch is recorded as the viewSwitch eventon

Reset to defaults puts the four sliders back.

Blocks ​

SettingWhat it doesDefault
Walls in the area's colourEach block's walls take its area's colour (a colouring tag's, if it has one). Off — pick one Wall colour for every wall. The sides in shadow are drawn a little darkeron
Highlight the walls tooWhen an area is hovered or selected, its walls light up together with its roof, and with Edge lines on its lines take the area's colour at the area's opacity. Off — only the roof changeson
Edge linesLines along the edges of every block — its corners, the foot of its walls and the rim of its roof — so neighbouring blocks of one colour read as separate. With it: Lines on the roofs (off — on the walls only), Line width (0.25–4 px) and Lines in the wall's colour (a darker shade of each wall; off — Lines in the area's colour, each line in its area's own colour and as strong as the area's fill, or with that off too one Line colour for all)off

Every visible area stands as a block. To keep one flat — a zone that holds other areas, a car park, a lawn — switch on Stays flat in 3D in the area's editor. To do it for many at once, switch on Areas stay flat in 3D in a tag: every area with that tag lies on the plan. A flat area keeps its colour, label, hover and card.

One area, one marker ​

These settings appear in the area and marker editors once the project has 3D on.

WhereSettingWhat it does
AreaStays flat in 3DThe area lies on the plan instead of standing
AreaHeight in 3DThis block's own height, 0.25–20 % of the plan's longer side — a tower among low buildings, a kiosk among shops. Use the project's goes back to the height from the 3D panel
AreaOwn wall colour in 3DThis block's walls in a colour of its own; off — they follow the 3D panel
MarkerHeight in 3DLifts the marker 0–20 % above the block or the ground it stands on, on a stem in its colour. 0 — it sits on the surface

A map with 3D on opens in 3D. One embed can open differently: view="2d" (or "3d") on <layota-map>, ?view=2d in a map link, view in the SDK. Like every appearance setting, 3D reaches a published map with Publish or Update live.

What to know ​

  • Markers stand on what is under them: on a block's top inside a standing area, on the ground elsewhere.
  • The plan is a flat picture. A plan that already draws its own "depth" — a darker offset copy under each shop, say — keeps it on the ground, where it shows from under the real walls. Use a flat plan for a 3D map.
  • A route lies on the ground. Blocks in front of it cover the line, as they would in a building; the A / B badges, the floor-change pins and the signs always stay on top.
  • The view is fixed. Visitors move and zoom the map; tilt and rotation are the ones set here.

API ​

The settings are part of the project's appearance: appearance.view3d in GET /api/projects/{id}/ and the public /api/p/{id}/, written with PATCH /api/projects/{id}/ and appearance_data.view3d. Send only what changes — it is merged over what the project has:

json
{ "appearance_data": { "view3d": { "enabled": true, "tilt": 30, "height": 3 } } }

Keys: enabled (boolean), tilt (0–65), rotation (−180–180), height (0.5–10), perspective (0–3), wallColor (a hex colour like #CBD5E1, or "" for each area's own colour), hoverWalls (boolean — a hovered or selected block's walls light up with its roof), edges (boolean — lines along the blocks' edges), edgeColor (a hex colour, "" for a darker shade of each wall, or "area" for each area's own colour at the area's opacity), edgeWidth (0.25–4, px), edgeRoofs (boolean — false keeps the lines on the walls only), toggle (boolean — the 2D / 3D button). Unknown keys or values are a 400.

What stands and how is set on the areas, tags and markers themselves: flatIn3d, heightIn3d, wallColorIn3d — see Entities.

Layota Documentation