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/04-get-map-information/01-get-current-floor-info.md.
MapxusDeveloper Platform
Products
Positioning APIAccess real-time indoor coordinates and contextual signals.API
UI SDKProduction-ready indoor map interfaces and UI components.AndroidiOS

Get Current Floor Info

To get the current selected floor info on Mapxus map:

map.renderComplete(function() {
	console.log(map.floor);
});

Returns IFloor | ISharedFloor

map.floor returns an IFloor when the selected indoor level belongs to a normal building floor:

  • code
  • id
  • ordinal

map.floor returns an ISharedFloor when the selected indoor level is a shared floor:

  • id
  • name
  • ordinal

Special Note: Read map.floor after renderComplete or after a floor-switching action.

Map.floor API

Sample web page: