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

Overlapping Feature Spiderfier is not working on Clustering #5

Open
harshithpawar94 opened this issue Dec 30, 2017 · 1 comment
Open

Comments

@harshithpawar94
Copy link

I am implementing a spiderfier of markers in our web application.
if I use map data object it works fine, but the issue is when I use the dataLayerClusterer object on OverlappingFeatureSpiderfier instance.
for example:
dataLayerClusterer = new DataLayerClusterer({
"map": map,
"maxZoom": 19
});
featureSpiderfier = new OverlappingFeatureSpiderfier(dataLayerClusterer);

Error:
I am getting this error in browser console:
Uncaught: Layer map should be set before instantiating OverlappingFeatureSpiderfy!

@slovely
Copy link
Owner

slovely commented Dec 30, 2017

Sorry, the library is designed to work directly with a data layer. I expect it would need a lot of changes to work with the clusterer - I'd happily take a PR though if you want to take it on.

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