findIndexOfClosest in OMGraphicList

From: Shawn Oakey <oakeys@mar.dfo-mpo.gc.ca>
Date: Tue Jul 09 2002 - 08:42:03 EDT

Hi

I have an application that uses an OMGraphicList and I need to know the index
of the OMGraphic closest to the where the mouse pointer clicked. To do this I
was using the findIndexOfClosest method. This worked fine when I was using
version 4.4.2 but when I switched to version 4.5 it seems to always choose
the first OMGraphic in the list except when the OMGraphics are really close
together on the map then it will sometimes choose something else. The
findClosest method still appears to work properly but I would really like to
have the correct index rather then the correct object. Both methods were
using a limit argument of 4.

I compiled the code using Java version "1.3.1_01" running on Mandrake Linux
release 8.1

Has anyone else had a similar problem?

Shawn

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Jul 9 09:03:13 2002

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:33 EDT