Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to define 3D activity as the default one #413

Open
claustres opened this issue Jan 29, 2025 · 1 comment
Open

Allow to define 3D activity as the default one #413

claustres opened this issue Jan 29, 2025 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@claustres
Copy link
Member

claustres commented Jan 29, 2025

Kano always starts in 2D now while an application embedding it as an iframe could only need the 3D activity. While it is possible to switch automatically from 2D to 3D it is not optimal as the 2D activity will be loaded anyway. We should be able to define by configuration that the default activity is the 3D one.

Current possiblity to switch:

postRobot.on('map-ready', async (event) => {
  await postRobot.send(event.source, 'globe'
})
@claustres claustres added the enhancement New feature or request label Jan 29, 2025
@claustres claustres added this to the v2.4.x milestone Jan 29, 2025
@claustres
Copy link
Member Author

claustres commented Jan 29, 2025

This is actually already possible by editing the router configuration although not really convenient;

postRobot.send(kano, 'setConfiguration', {
  'routes[0].children.home.children.default-home-view.redirect.name': 'globe-activity',
  ...
})

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: To do
Development

No branches or pull requests

1 participant