Results 1 to 6 of 6

Thread: Click event on BasicTiledImageLayer

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Location
    Brest, Brittany, France
    Posts
    19

    Default Click event on BasicTiledImageLayer

    Hi,

    Is it possible to catch an event when click on BasicTiledImageLayer ?

    Thanks

  2. #2
    Senior Member heidtmare's Avatar
    Join Date
    Feb 2008
    Location
    Melbourne, FL, USA
    Posts
    674

    Default

    you can add a mouselistener to the inputhandler

  3. #3
    Junior Member
    Join Date
    Feb 2012
    Location
    Brest, Brittany, France
    Posts
    19

    Default

    Ok, but what do you mean exactly because when I click anywhere I receive the event ? Or I would receive an event only when I click on a BasicTiledImageLayer...
    Maybe I didn't understand something about layers ?

  4. 04-12-2012, 03:26 PM

    Reason
    Double post, sorry...

  5. #4
    WWJ Technical Manager
    Join Date
    May 2007
    Location
    Seattle
    Posts
    1,114

    Default

    BasicTiledImageLayer typically covers the terrain. When you click on the layer's imagery the presumption is that you're picking the terrain. There's no mechanism to deliver Select events that indicate a TiledImageLayer was picked.

    If the TiledImageLayer covers a small area then you could place a transparent SurfaceSector over it and that would be delivered as the pick. Picking doesn't honor opacity.

  6. #5
    Junior Member
    Join Date
    Feb 2012
    Location
    Brest, Brittany, France
    Posts
    19

    Default

    Ok, it's exactly what I will do !

    Thanks,

    Kenavo

  7. #6
    WWJ Technical Manager
    Join Date
    May 2007
    Location
    Seattle
    Posts
    1,114

    Default

    When you set the surface shape's opacity, be sure to use a very small value that's not 0. There's a bug in the code that prevents a surface shape whose opacity is 0 from being picked. Try 0.00000001.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Disable mouse right click event for pitch and roll
    By Unregistered in forum Feature Discussion
    Replies: 1
    Last Post: 09-13-2012, 04:20 PM
  2. Double Click Zoom
    By ayman in forum Development Help
    Replies: 0
    Last Post: 10-31-2010, 09:17 AM
  3. WorldWindowGLCanvas click event question
    By nigel25840 in forum Development Help
    Replies: 2
    Last Post: 10-13-2009, 01:58 AM
  4. Get screen point for click position in select event
    By naql in forum Development Help
    Replies: 3
    Last Post: 08-04-2008, 05:58 PM
  5. subscribing to the click events and getting what icons are under the event
    By Unregistered in forum Add-on & Script Development
    Replies: 2
    Last Post: 01-26-2007, 02:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •