AzureMapsControl.Components
AzureMapsControl.Components copied to clipboard
Layer events affecting another sessions (other tabs, other users)
Let's say we have user A and user B. And in the blazor app we have a layer in the azure map and some events in there, see a code as example:
layer.OnMouseOver += mouseEventArgs => { _navigationManager.NavigateTo("test"); };
If there's only user A, it will work fine, when the user hovers the mouse over the layer it will navigate to this test page.
But let's say User A opened the map, then User B. If User A over the mouse, it will open the page in User B tab. Why? Is this a bug or am I doing something wrong?
If someone can point what's wrong, I'll appreciate!
To Reproduce Steps to reproduce the behavior:
- Create a layer
- Add a event to layer
- Add layer to map
- Open two tabs
- Invoke events from first tab opened and see the reaction in another
Expected behavior The events should happen in the tab that invoked events