Make all points available to clicking on although those points are in the same position

52 views
Skip to first unread message

Raul H

unread,
Jul 12, 2012, 9:22:24 AM7/12/12
to app...@googlegroups.com
Hello,

I was researching the renderer architecture, and I have a problem in my approach, basically is, I am doing certain amount of things for a same point, therefore I need to be able to click on those points that are in the same position on screen. I have solved the problem of the visualisation by the orientation changing of every single point in the same position (latituted and longitude).

But the problems remains the same because the only way to click on the point in by the rendered point, that's the icon or the augmented drawn point. 

So the question is... how I can make available to click on the rendered text in order to be able to see the information stored in such a point?

I am reviewing every single file of the architecture but I still don't know how to make it work.

Suggestions?

Sergi Martínez

unread,
Jul 23, 2012, 5:01:57 AM7/23/12
to app...@googlegroups.com
The solution will be modifying the method onTouchEvent and the Interface onPointPressedListener from the AppuntaView class.

Currently, this method is executed everytime the user taps on the view. It selects the point nearest to the tap coordinates and returns it.

What you can do is modify this method to return a group of points if all them are below a determinate distance of the tap coordinates.

If you perform this change I'll be really glad if you can share it, so it can be incorporated to the framework.

Sergi Martínez

unread,
Jul 23, 2012, 5:04:45 AM7/23/12
to app...@googlegroups.com
I correct myself :)

Instead of modifying it, maybe is better create a new Interface named onMultiplePointsPressedListener so you can decide when do you want to listen for multiple points or for a single point.



--
You received this message because you are subscribed to the Google Groups "Appunta" group.
To view this discussion on the web visit https://groups.google.com/d/msg/appunta/-/wQUAbhmkOSUJ.

To post to this group, send email to app...@googlegroups.com.
To unsubscribe from this group, send email to appunta+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/appunta?hl=en.



--

Sergi Martínez


sergi.m...@gmail.com

Raúl Hernández

unread,
Jul 23, 2012, 5:07:22 AM7/23/12
to app...@googlegroups.com
But if the point is on the same coordinates, therefore, in the same portion of the screen the problem remains the same, isn´t?

Another solution I was thinking was render each point with a function that allows render each one over the other or in a circle, therefore the points can be selected isolatelly. I don´t know if I will have time for this or could be easier your approach

Sergi Martínez

unread,
Jul 23, 2012, 5:12:36 AM7/23/12
to app...@googlegroups.com
Well, with my solution you obtain the list of points under the user finger. Is up to you how are you presenting this to the user.

For example, make them appear listed in a floating box when selected and then the user selects which one wants, etc, there area a lot of possiblities


Trying to cluster the point before presenting them could be a bit complicated and could heavily impact on performance. I'll think the best way will be introduce a new step before painting the points in order to pre-process them

Raúl Hernández

unread,
Jul 23, 2012, 5:25:03 AM7/23/12
to app...@googlegroups.com
Thanks, I won´t modify any improvement til Thursday, so if you have a good idea, please let me know. Then I will try to introduce it.

Sergi Martínez

unread,
Jul 23, 2012, 5:27:33 AM7/23/12
to app...@googlegroups.com
I have a big list of TODOs that can't be done this week, so I won't work on it until next week

On Mon, Jul 23, 2012 at 11:25 AM, Raúl Hernández <raul...@gmail.com> wrote:
Thanks, I won´t modify any improvement til Thursday, so if you have a good idea, please let me know. Then I will try to introduce it.

Raúl Hernández

unread,
Jul 23, 2012, 5:32:13 AM7/23/12
to app...@googlegroups.com
If I work on it, I will let you know. Thanks Sergi. We will extend appunta! :)

Raúl Hernández

unread,
Jul 30, 2012, 11:22:28 AM7/30/12
to app...@googlegroups.com
I finally didn´t have time until today. Did you implement anything finally? I was reviewing the thread and our suggestions. Everything goes from the same point. How to render different points with the same coordinate is the issue. In order to avoid the overlapping on screen due to render actions due to the same coordinates in fact.
Reply all
Reply to author
Forward
0 new messages