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

Handling multiple data points at the same location #35

Open
amotl opened this issue Dec 13, 2019 · 2 comments
Open

Handling multiple data points at the same location #35

amotl opened this issue Dec 13, 2019 · 2 comments

Comments

@amotl
Copy link

amotl commented Dec 13, 2019

Introduction

Within #27, @sekomarek asked for grouping values from different circles at the same location within a single popup.

When investigating the nitty gritty details about this, we found there is more to it. The main question is how to assign the circle size and circle color attributes as well as how to handle clickthrough-links when measurements from e.g. two different sensors should be rendered at the very same location.

cc @d-roet, @wetterfrosch

@amotl
Copy link
Author

amotl commented Dec 13, 2019

Research

When searching the web for "leaflet display two points at the same location", this yields different suggestions.

Evaluation

Personally, I like the "stacking" approach most as it will give us the opportunity to color the stacked chips appropriately and distinctively. I don't see that for clustering and spidering. However, I don't see a way to bind popups to these chips yet, which is required for the original feature request #27.

References

@amotl amotl changed the title Display multiple circles at the same location Handling multiple data points at the same location Dec 13, 2019
@d-roet
Copy link

d-roet commented Dec 13, 2019

@amotl Thanks a lot for investigating this further. I also prefer the stacking solution, it's visually clear the points are at the same location.

In https://carto.com/blog/stacking-chips-a-map-hack/ they show at the bottom that when you have a very high zoom level the stacks get an (artificial) Y-offset. Would that be a possibility?

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