Skip to content

Legend ​

The legend is a key to the colours on your map that visitors can also use as a filter. Each row is a tag: its colour swatch, its name in the visitor's language, and how many objects on the current floor carry it. Only tags that something on the current floor carries are listed, so a row never filters to nothing: on a residential overview where the units are on the floor levels, the Available / Sold rows appear once the visitor opens a floor (a tag that is switched on stays listed, at 0, so it can be switched off). Tapping a row keeps those objects in full colour and dims everything else. To make the matches stand out on a busy plan, switch on Appearance → Legend → Fade the plan while filtering: the base plan then fades a little under a light veil of the map's background colour while a category is picked (off by default) — a quick way to find "all Comfort pitches" or "every restaurant" without typing.

Turning it on ​

  1. In the Tags panel, open a tag and switch on Show in legend. Only flagged tags appear; service tags used for search alone stay out of the legend.
  2. Drag tags into the order you want — the legend follows the Tags list from top to bottom.
  3. In Appearance → Legend, switch on Visibility and pick a type:
TypeWhat visitors see
StripChips always visible under the search bar — the key is readable at a glance, like a printed plan. On phones the strip folds into the button.
ButtonA filter icon next to the search bar; the list opens on tap. Keeps the map clean in small embeds.

The legend is off by default, so existing projects do not change.

How filtering behaves ​

  • Several rows can be active at once; an object shows if it carries any active tag.
  • Objects with an active tag are emphasised (stronger fill, thicker outline); everything else is dimmed, not hidden — the layout stays readable. Dimmed objects still react: hovering one brings it back to full colour and a tap opens its card.
  • The map moves to show what matches: if some of the tagged objects on this floor are off screen — say the visitor has zoomed into one corner — the camera pans, or zooms out, until all of them are in view. It never zooms in, and it stays put when everything is already visible or when the filter is cleared. setFilter from the SDK moves the camera the same way.
  • The filter combines with search: typing 74 with Comfort active finds the Comfort pitch 74.
  • Switching floors keeps the active tags that the new floor has and switches off the others, so a filter picked on one floor never dims a whole floor that doesn't use it. Example: Amenities picked on a residential site plan switches off when the visitor opens a building, while Available carries on to the floor. If none of the active tags is on the new floor, the filter turns off. This applies to every way of changing floor (drill-down, the level switcher, back, search, a route, the SDK); an opening link ?tags=…&levelId=… is applied as written. The counts update for the new floor.
  • Cancel removes it.

Keeping the colours honest ​

The swatch in the legend is the tag's colour, but each area and marker has its own colour. If they drift apart the key lies about the map. Two ways to keep them together:

  • Colours areas on the map on the tag (see Tags): the tag's areas are always drawn in the tag's colour — the right choice for statuses that change (available / reserved / sold). A tag with a hatch shows a hatched swatch.
  • Apply colour to objects in the tag editor recolours every area and marker that carries the tag once — one action, undoable with the usual undo.

Open the map with a filter already applied by adding tags to the embed URL. Each value is a tag name — case-insensitive, in any of the project's languages — or a tag id (see Entities API):

https://app.layota.app/embed/PROJECT_ID?tags=comfort
https://app.layota.app/embed/PROJECT_ID?tags=comfort,huisdieren
https://app.layota.app/embed/PROJECT_ID?tags=TAG_ID_1,TAG_ID_2

A link a site builder can write by hand: on a "Comfort pitches" page, ?tags=comfort opens the map with only the Comfort pitches shown. If two tags share a name, the value matches both. A value that matches no tag is skipped (the SDK gets an error event); if none match, the map opens unfiltered.

The JavaScript SDK exposes setFilter(tags) (ids or names, as above) / clearFilter() and emits filterChange; see the JavaScript SDK. When analytics is enabled, each tap records a filterApply event with the active tag ids.

Layota Documentation