For AI agents: the complete documentation index is available at /core-sdk/map/web/llms.txt, the full documentation bundle is available at /core-sdk/map/web/llms-full.txt, and this page is available as Markdown at /core-sdk/map/web/v10/02-map-controllers/01-floor-controller.md.
MapxusDeveloper Platform
Products
Positioning APIAccess real-time indoor coordinates and contextual signals.API
UI SDKProduction-ready indoor map interfaces and UI components.AndroidiOS

Floor Controller

The floor controller and building selector are displayed by default at the top-right of the map. To disable the floor controller at map initialization:

MapxusAuth.registerWithApiKey("your_appId", "your_secret");
// init maplibre-gl map
const maplibreMap = new maplibregl.Map({
  container: "map",
});
// init mapxus map
const map = new MapxusMap.Map({
  map: maplibreMap,
  buildingId: "elements_hk_dc005f",
  floorSelectorEnabled: false,
});

Upon map render complete, to disable/enable the floor controller you may use:

map.floorSelector.disable();
map.floorSelector.enable();

You can choose where to put the floor controller, by default it is located at the top-right of the map.

options("top-left", "top-right", "bottom-left", "bottom-right");

e.g.

map.floorSelector.setPosition("top-left");

Sample web page: