![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Junior Member
Join Date: Feb 2012
Location: Brest, Brittany, France
Posts: 14
![]() |
Hi,
Is it possible to catch an event when click on BasicTiledImageLayer ? ![]() Thanks |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Feb 2008
Location: Melbourne, FL, USA
Posts: 679
![]() |
you can add a mouselistener to the inputhandler
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2012
Location: Brest, Brittany, France
Posts: 14
![]() |
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 |
|
WWJ Technical Manager
Join Date: May 2007
Location: Seattle
Posts: 1,041
![]() |
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. |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2012
Location: Brest, Brittany, France
Posts: 14
![]() |
Ok, it's exactly what I will do !
Thanks, Kenavo |
|
|
|
|
|
#6 |
|
WWJ Technical Manager
Join Date: May 2007
Location: Seattle
Posts: 1,041
![]() |
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.
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Disable mouse right click event for pitch and roll | Unregistered | Feature Discussion | 1 | 09-13-2012 04:20 PM |
| Double Click Zoom | ayman | Development Help | 0 | 10-31-2010 09:17 AM |
| WorldWindowGLCanvas click event question | nigel25840 | Development Help | 2 | 10-13-2009 01:58 AM |
| Get screen point for click position in select event | naql | Development Help | 3 | 08-04-2008 05:58 PM |
| subscribing to the click events and getting what icons are under the event | Unregistered | Add-on & Script Development | 2 | 01-26-2007 02:22 PM |