Putting a website inside a map

You can inject a website directly into your map, at a given position.

To do this in Tiled:

  • Select an object layer
  • Create a rectangular object, at the position where you want your website to appear
  • Add a url property to your object pointing to the URL you want to open
A "website" object

The url can be absolute, or relative to your map.

Internally, WorkAdventure will create an "iFrame" to load the website. Some websites forbid being opened by iframes using the `X-Frame-Options HTTP header.

Please note that the website always appears on top of the tiles (even if you put the object layer that contains the "website" object under the tiles).

Allowing the scripting API in your iframe

If you are planning to use the WorkAdventure scripting API inside your iframe, you need to explicitly allow it, by setting an additional allowApi property to true.

A "website" object that can communicate using the Iframe API

Need some help?

WorkAdventure is a constantly evolving project and there is plenty of room for improvement regarding map editing.

If you are facing any troubles, do not hesitate to open an "issue" in the GitHub WorkAdventure account.

🔍 Found a typo? Want to propose improvements? Do not hesitate to directly propose changes.