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/02-get-current-building-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 Building Info

To get the current selected building basic info on Mapxus map:

map.renderComplete(function() {
	console.log(map.building ? map.building.properties : null);
});

Returns MapGeoJSONFeature

The building basic information is stored in map.building.properties. Common fields include:

  • id
  • name
  • name:en
  • name:zh-Hans
  • name:zh-Hant
  • ref:venue
  • type
  • building
  • label_center
  • default_displayed_floor
  • level_ids
  • level_names
  • ordinals

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

Map.building API

Sample web page: