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

AzureMap with large number of markers having tab switching issue #206

Open
gmjcbs opened this issue Jul 12, 2024 · 5 comments
Open

AzureMap with large number of markers having tab switching issue #206

gmjcbs opened this issue Jul 12, 2024 · 5 comments

Comments

@gmjcbs
Copy link

gmjcbs commented Jul 12, 2024

Hi,

I'm using Azure Maps within a tab component on my application. While it functions well with a smaller number of markers, I'm encountering a significant performance issue when dealing with roughly 68,000 markers. In this scenario, tab switching takes over 2 minutes.

I have used clustering, but it does not help much.

Is this a typical behavior for such a large marker count, or are there potential optimizations we can explore to improve performance?

Any insights or suggestions you might have would be greatly appreciated.

Thanks,

@yulinscottkang
Copy link
Contributor

An HTMLMarker is essentially an HTML element, so it doesn’t work efficiently with large datasets. For a large number of data points, it’s better to use a SymbolLayer. For example, using the following sample as a base and testing with testDataSize = 70000 features, it took approximately 7 seconds to load on my laptop.

https://samples.azuremaps.com/symbol-layer/symbol-layer-options

image

@gmjcbs
Copy link
Author

gmjcbs commented Jul 15, 2024

I use SymbolLayer.
Map loads pretty quick well within 3 secs.
Switching between other components and coming to map tab is also good. But switching from map to other tab takes almost a minute.
I tried profiling where i got error message.
image

@yulinscottkang
Copy link
Contributor

It seems that the error isn’t coming from the library. You might want to check whether any of the installed Chrome extensions is causing the issue.

@gmjcbs
Copy link
Author

gmjcbs commented Jul 16, 2024

This error also comes when working with small number of markers, but then tab switching works smoothly. Page switching takes time when there are larger number of markers. So, I don't think above error is the root cause. Might be some background process causing map view to unmount a sluggish operation.

@gmjcbs
Copy link
Author

gmjcbs commented Jul 22, 2024

test-app.zip
Hi,
Attached sample app. Please try once.

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

No branches or pull requests

2 participants