krpano Plugins

Plugin krpano v1.0.0 New

Floor Plan

An interactive floor plan for your krpano tour: a radar shows where visitors stand and where they look, on every floor.

€49 One-time price, excl. VAT

VAT is calculated from your billing country and added at checkout, where you see the total price before you pay. Businesses in other EU countries with a valid VAT ID pay no VAT (reverse charge).

Try the demo

Compatibility

Verified for krpano 1.23.2–1.24

How it works.

In a tour with more than a handful of scenes, visitors lose their way and miss rooms. Floor Plan shows your own plan image for every floor with a spot for each scene and a radar that turns with the view. Visitors click a spot or a room to walk there, zoom and drag the plan, open it full screen and see which rooms they have already visited. A calibration mode measures each spot's heading for you, and every setting is an attribute of one XML element.

Installation.

  1. 1

    Copy one folder

    Put the encrypted plugin folder into your tour and add one layer element to your tour XML.

  2. 2

    Add your plans

    List your floor images, one spot per scene and optional rooms in a small floorplan.xml that survives MAKE VTOUR.

  3. 3

    Calibrate once

    Switch on calibrate="true", click where the camera stands and a door in the view, and copy the printed line into floorplan.xml.

Why it makes a difference.

Visitors always know where they are

The active spot, the radar with the real field of view and the highlighted room follow every scene change and every turn of the view.

Walk through the building

A click on a spot or a room opens that scene; with jump_view="walk" the new view faces the direction the visitor walked.

Right on every screen

A compact panel on computers, a plan button and a full-screen plan with a Go button on phones, and a mini plan when you look down in VR.

Screenshots.

Try the demo
Desktop The floor plan panel over the hotel lounge: the radar shows the view toward the garden windows.
Phone The full-screen plan on a phone: a tapped room with its Go button.
Detail The expanded plan of the 1st floor with room labels, visited spots and the radar.
The floor plan panel over the hotel lounge: the radar shows the view toward the garden windows.

Desktop The floor plan panel over the hotel lounge: the radar shows the view toward the garden windows.

1 / 3

Settings.

Set as attributes in your tour XML.

SettingTypeDefaultDescription
active Yes / NotrueSwitches the floor plan on or off at runtime (default true).
slot Listtop-rightScreen corner of the panel and the plan button: top-right (default), top-left, bottom-right or bottom-left. top-righttop-leftbottom-rightbottom-left
offset Number16Distance from the edges of that corner in pixels (0–200, default 16).
panel_width Number260Width of the panel on wide screens in pixels (160–480, default 260).
panel_height Number200Height of the panel on wide screens in pixels, header included (120–400, default 200).
start_state ListopenOn wide screens the tour starts with the open panel (open, default) or with the plan button (collapsed); phones always start with the button. opencollapsed
orientation Listplanplan (default) shows the image as drawn, north turns the plan so that north is up, heading turns it with the view. plannorthheading
jump_view ListsceneView after a jump from the plan: the scene's own start view (scene, default) or facing the walking direction (walk). scenewalk
blend TextBLEND(0.6)krpano transition of jumps from the plan, for example BLEND(0.6) (default) or NOBLEND.
zoom_max Number4Largest plan zoom as a multiple of the fitted plan (1–10, default 4).
show_visited Yes / NotrueDims the spots of scenes visited during this visit (default true).
labels Yes / NotrueShows room titles on the plan where they fit (default true).
theme ListdarkDark (default) or light colour scheme. darklight
accent_color Color#3D8BFFColour of the active spot, the radar, the active floor tab and the focus ring (default #3D8BFF).
transition Yes / NotrueOpens, closes and changes the plan with short, smooth transitions; false changes it at once. Visitors who turned on reduced motion never get the motion.
transition_duration Number280Length of the transitions in milliseconds (100–1000, default 280).
vr Yes / NotrueShows a mini plan in VR when the visitor looks down (default true); false only hides the plan in VR.
vr_pitch Number50Degrees below the horizon at which the VR mini plan appears (30–80, default 50).
calibrate Yes / NofalseCreator mode: opens the plan with a bar that measures position and heading and prints the spot line; never leave it on in a published tour (default false).
debug Yes / NofalsePrints the number of floors, spots and rooms to the browser console (default false).
text_title TextFloor planName of the plan for the button, the panel and the expanded plan (default “Floor plan”); a <languages> key or literal text.
text_floors TextFloorsScreen reader name of the floor tabs (default “Floors”).
text_expand TextExpand planLabel of the expand button (default “Expand plan”).
text_collapse TextCollapseLabel of the collapse button (default “Collapse”).
text_close TextCloseLabel of the close button of the expanded plan (default “Close”).
text_go TextGoButton that opens the tapped scene on phones (default “Go”).
text_zoom_in TextZoom inLabel of the zoom-in button (default “Zoom in”).
text_zoom_out TextZoom outLabel of the zoom-out button (default “Zoom out”).
Example
<include url="floorplan.xml" />

<layer name="z360_floor_plan"
       url="plugins/z360_floor_plan/z360_floor_plan.js"
       keep="true"
       jump_view="walk" />

<!-- floorplan.xml -->
<z360_floor_plan_floor name="ground" title="Ground floor" url="plans/ground.webp" />
<z360_floor_plan_spot name="scene_lounge" floor="ground" x="560" y="250" heading="-121" />
<z360_floor_plan_room name="lounge" floor="ground" title="Lounge"
                      points="410,228 670,228 670,530 410,530" scene="scene_lounge" />

Features

  • One plan image per floor (PNG, JPG, WebP or SVG) with floor tabs
  • A spot per scene with its own heading and a radar that shows the view direction and field of view
  • Room labels that appear when they fit and clickable room areas with a hover highlight
  • Orientation as drawn, north up or heading up
  • Walk jump: the new scene faces the walking direction
  • Visited spots dimmed during the visit
  • Zoom and pan with mouse wheel, double click, drag, pinch and keys
  • Expanded plan on computers, full-screen plan with a Go button on phones
  • Calibration mode that prints the finished spot line
  • Mini plan in VR when the visitor looks down — tested in krpano's simulated VR, not yet on VR headsets
  • Smooth transitions, off with reduced motion
  • Keyboard control and screen reader labels
  • Texts in several languages, dark and light theme, accent colour and CSS variables
  • Encrypted plugin file, every setting as an XML attribute

What's included

  • plugins/z360_floor_plan/z360_floor_plan.js (encrypted)
  • Manual (English)