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

No way to switch between session and request based billing when creating multiple maps #138

Closed
jonas-nordtorp opened this issue Dec 5, 2024 · 1 comment

Comments

@jonas-nordtorp
Copy link

I would like to be able to specify, on a map basis, if the map should use session or request based billing.

Our use case for this is that we have a main map, we wanna use session based billing on. Then in a sidebar we have a video stream, this video stream has a div that you can open and close to see the current location of the camera streaming.
Because the stream map is short lived, e.g. it opens, the user sees the location and closes it again, it would benefit from request based billing.

Right now, session is defined on the sdk config, and whenever a map instance calls the api, it uses the currently specified value for the session property on the sdk. So if i create my main map, setting session to true, then create the video stream map, setting the session to false, my main map now uses request based billing also.

@jonas-nordtorp
Copy link
Author

I realized that for this use case, all the maps shares the same session, and the feature would make no sense

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant