> 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.

# Get Current Floor Info

To get the current selected floor info on Mapxus map:

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

**Returns** [`IFloor`][ifloor] `|` [`ISharedFloor`][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][getter-floor]

Sample web page:

<iframe src="https://map-service.mapxus.com/bssww/getFloor" width="100%" height="550px"></iframe>

[getter-floor]: https://map-service.mapxus.com/dpw/api/v1/api/digitalMap/web/10.2.1/classes/index.Map.html#floor

[ifloor]: https://map-service.mapxus.com/dpw/api/v1/api/digitalMap/web/10.2.1/interfaces/index.IFloor.html

[isharedfloor]: https://map-service.mapxus.com/dpw/api/v1/api/digitalMap/web/10.2.1/interfaces/index.ISharedFloor.html
