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

Sub-plugin support? #57

Open
turbolego opened this issue Oct 13, 2021 · 1 comment
Open

Sub-plugin support? #57

turbolego opened this issue Oct 13, 2021 · 1 comment

Comments

@turbolego
Copy link

turbolego commented Oct 13, 2021

Leaflet.markercluster has "sub-plugins".

One of these "sub-plugins" is Leaflet.MarkerCluster.List by @adammertel which is more "mobile friendly" than the regular clusters.

However, I'm unable to add this sub-plugin and I'm wondering if "sub-plugins" are supported by ngx-leaflet-markercluster?

Thanks for reading! 😄

Edit: This is related to issues #26 and #42 which are both sub-plugins leaflet.markercluster.freezable and leaflet.markercluster.layersupport by @ghybs
Seems like I'm not the only one who cannot get sub-plugins to work with ngx-leaflet-markercluster?

@reblace
Copy link
Contributor

reblace commented Jun 10, 2022

Depending on how the sub-plugin works, you should be able to use dependency injection to get a reference to the parent directive for the markercluster. From there, you should be able to access the markercluster instance and the Leaflet map. That's how the ngx-leaflet-markercluster works with respect to it being a "sub-plugin" to leaflet itself.

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