The WrldIndoorControl is an optional slider widget for moving between floors within an indoor map.


  • JQuery
  • JQuery UI
  • wrld.css
  • indoor_control.js

The Touch Punch plugin for JQuery UI is also packaged with the Indoor Control to allow touch controls to work automatically across mobile devices.

For a full example of how to add an WrldIndoorControl to a map, see this example.


var indoorControl = new WrldIndoorControl("widget-container", map);
Argument Type Description
id string The id of the DOM element to contain the indoor control.
map L.Wrld.map The map object that this slider controls.