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 annotations readability issue #52

Open
keithnewman14 opened this issue Jul 3, 2012 · 2 comments
Open

Overlapping annotations readability issue #52

keithnewman14 opened this issue Jul 3, 2012 · 2 comments

Comments

@keithnewman14
Copy link
Member

If an annotation is created that surrounds an existing annotation, the first one becomes inaccessible.

For example, if you create an annotation to point out a particular area of interest in Massachusetts, and then later create an annotation that surrounds the original 13 colonies, there is no way to read the first annotation (other than scrolling down to the bottom of the page where they are all listed).

If you do it in reverse though (make an annotation around the colonies and then one around Massachusetts), you will be able to read both.

@slhck
Copy link
Member

slhck commented Jul 10, 2012

I've googled a while for that and it seems there's no real solution. Further reading:

@slhck
Copy link
Member

slhck commented Jul 10, 2012

So here's a couple of ideas I got from the question – I'll have to think about what really makes sense. Maybe hiding features temporarily wouldn't be too hard.

  1. Turn on feature clustering strategy
  2. Implement your own clustering algorithm, so when a new item is added or modified, your algorithm re-runs and does a nested for-loop
    check and n*n(-1) checks to see what overlaps with what - then modify
    the feature property to setup a list of overlapping features, and when
    the user Clicks on the feature, display a list of features that
    overlap and have user select what they really wanted to click on.
    Makes sense?
  3. Instead of implementing feature on-click, just implement a whole map click handler. And when user clicks, check through your layer for
    any intersecting features - and if there is one - display that guy's
    pop-up, and if there are multiple, display a prompt list like in Sunspot causes rake warning #2
    above. If none intersect, just ignore.
  4. Implement a right-click option to temporarily "hide" a feature to let you get access to the hidden feature. As soon as next one is
    clicked, re-display all the hidden features
  5. Similar to Annotation Slideup-bar has weird formatting in Ubuntu #4, inside the top feature's pop-up, add a menu/link item to "hide" the feature. And proceed like in Annotation Slideup-bar has weird formatting in Ubuntu #4.
  6. Similar-ish to Annotation Slideup-bar has weird formatting in Ubuntu #4/5 implement a right-click "temporary move" and click drag the feature out of the way [remember it's old spot]. Then
    user clicks lower feature and the top one springs back to it's
    original position.

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

No branches or pull requests

2 participants