AzureMapsControl.Components icon indicating copy to clipboard operation
AzureMapsControl.Components copied to clipboard

Layer events affecting another sessions (other tabs, other users)

Open phpb1997 opened this issue 1 year ago • 0 comments

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:

  1. Create a layer
  2. Add a event to layer
  3. Add layer to map
  4. Open two tabs
  5. Invoke events from first tab opened and see the reaction in another

Expected behavior The events should happen in the tab that invoked events

phpb1997 avatar Apr 15 '24 15:04 phpb1997