What version of OpenMap, and what kind of OMGraphics are you using?
This sounds like a bug that was fixed in the latest version that
affected OMRasters.
- Don
On Wednesday, January 22, 2003, at 12:32 AM, Tri Tran wrote:
> Hi all,
>
> Have anyone solve this problem in
> OMGraphicList.findClosest(x,y,limit), I
> have layer extend from OMGraphicHandlerLayer
>
> // get the graphic list
> OMGraphicList l = getList();
> // compare and look for closest the cursor's cordination with graphics'
> coordination.
> OMGraphic omgr = l.findClosest(e.getX(), e.getY(), 2.0f); //2 pixels
> limit
>
>
> It work fine at the first instant, but when you move the map (like zoom
> in/out, navigate left/right), the graphics on map is no longer at the
> old
> coordination but the graphic list is not updated, there for when move
> the
> mouse to the graphic at the new position, the .findClosest() can't
> find any.
>
> I may get away with lat/long, but it won't work well with different
> zoom
> mode.
>
> Thanks
>
> --
> [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"]
>
>
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- [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 Thu Jan 23 08:15:43 2003
This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:34 EDT