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

mgl-marker-cluster data is not actually dynamic #71

Closed
bytelabsco opened this issue Nov 3, 2018 · 1 comment
Closed

mgl-marker-cluster data is not actually dynamic #71

bytelabsco opened this issue Nov 3, 2018 · 1 comment

Comments

@bytelabsco
Copy link

I'm using mgl-marker-cluster with geojson that is generated in my component controller. Whenever I update information in the variable bound to the data property of mgl-marker-cluster, the map will not update. I've tried editing the data in place (same variable reference) and creating a completely new set of data (changing the reference) but the map will not update without some manual interaction with the map (pan, zoom, etc).

The only workaround I've found is the old school hacky method where you set the variable to null, then set it to the new value in a setTimeout() call. However, this creates an undesirable flicker. Any suggestions?

Wykks added a commit that referenced this issue Jan 27, 2019
@Wykks
Copy link
Owner

Wykks commented Jan 27, 2019

Totally my bad, now fixed... Sorry for the delay 😖

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