Skip to content

Indoor mapping support

For some use cases (touristic venues, emergency response, public transit...), it can be interesting to offer Indoor mapping support in your viewer. Panoramax offers this through two complementary datasets:

  • Panoramax Semantics, with the osm|level=n tag. Add it on your selected pictures or sequences this tag through Tags editor or semantics API.
  • OpenStreetMap Simple Indoor Tagging, the tag model to map building indoors. We rely on indoor= stack for map display.

Screenshot of viewer with indoor map enabled on Rennes train station at level 2

To offer indoor maps in Panoramax viewer, you have to:

  • Make sure proper indoor mapping is available in OpenStreetMap, check indoor= map to see covered maps. If missing, you can contribute to OpenStreetMap, or get help from community or professionals to add your own building in OSM.
  • Enable maplibre-gl-indoorequal plugin in your web page:
<script src="https://unpkg.com/maplibre-gl-indoorequal@1.3.0/dist/maplibre-gl-indoorequal.umd.min.js"></script>
<link href="https://unpkg.com/maplibre-gl-indoorequal@1.3.0/maplibre-gl-indoorequal.css" rel="stylesheet" />
<pnx-viewer
  id="viewer"
  map-options='{
    indoor: {
      apiKey: "GET YOURS @ https://indoorequal.com/",
      heatmap: false
    }
  }'
></pnx-viewer>

Note

You can rely on any indoor= server by changing url parameter.