be88ex / earth-api-samples

Automatically exported from code.google.com/p/earth-api-samples
1 stars 0 forks source link

Support event listeners and clicking on 3D models #123

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a placemark and attach a 3-d model to it
2. Add mouseevents (mousedown, mouseup, etc.)
3. Append the placemark to the globe.

What is the expected output or behavior? What do you see instead?
Ideally, any spatial region occupied by the 3-d model should trigger the
mouseevents. However, this may be difficult given the irregular shapes of
different 3-d models. So the trigger region could be a rectangular box
enclosing the model. 

What we currently observe is that most of the space occupied by the model
does not trigger the mouseevents, only a small region near the center does. 

Which plugin version are you using?
4.3.11498.3261

Which browsers and operating systems are affected?
This problem is observed in both Mac's and Windows' Firefox 3.0.x

Please provide any additional information (code snippets/links) below.

Original issue reported on code.google.com by mquan...@gmail.com on 16 Dec 2008 at 4:13

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 16 Dec 2008 at 6:35

GoogleCodeExporter commented 8 years ago
Also the case for polygons -- only their outlines are clickable.

Original comment by api.roman.public@gmail.com on 7 Jan 2009 at 3:39

GoogleCodeExporter commented 8 years ago
Issue 154 has been merged into this issue.

Original comment by api.roman.public@gmail.com on 4 Feb 2009 at 10:40

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 10 Feb 2009 at 4:55

GoogleCodeExporter commented 8 years ago
I suffer this issue in FF 2.X and I´m almost sure that on IE too.

Original comment by rmpatern...@gmail.com on 20 Feb 2009 at 10:49

GoogleCodeExporter commented 8 years ago
Same problem in 4.3.11528.8566 with FF and IE.

Original comment by limelink777@gmail.com on 9 Mar 2009 at 10:52

GoogleCodeExporter commented 8 years ago
Issue 179 has been merged into this issue.

Original comment by api.roman.public@gmail.com on 10 Mar 2009 at 5:23

GoogleCodeExporter commented 8 years ago
Great problems with polygons and the information baloons. When you click on 
outline
of polygon the baloon shows the informations of an other polygon!

Original comment by scampol...@gmail.com on 1 Apr 2009 at 8:54

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 22 May 2009 at 1:39

GoogleCodeExporter commented 8 years ago
It will be great to resolve this issue

Original comment by polatali...@gmail.com on 8 Jun 2009 at 8:30

GoogleCodeExporter commented 8 years ago
Important problem to fix!

Original comment by greg.ang...@gmail.com on 5 Aug 2009 at 7:36

GoogleCodeExporter commented 8 years ago

Original comment by api.roman.public@gmail.com on 9 Aug 2009 at 12:56

GoogleCodeExporter commented 8 years ago
Bulk edit.

Original comment by api.roman.public@gmail.com on 9 Aug 2009 at 1:02

GoogleCodeExporter commented 8 years ago
Any estimate for when this issue will be resolved? The buildings layer works, 
so it 
must be possible.

Original comment by cubereco...@gmail.com on 5 Sep 2009 at 1:51

GoogleCodeExporter commented 8 years ago
Clickability of 3D buildings is somewhat of a different problem due to the way 
they
are implemented in Google Earth. No estimate on when this will be fixed, but we 
do
realize it is one of the top issues right now.

Original comment by api.roman.public@gmail.com on 5 Sep 2009 at 6:36

GoogleCodeExporter commented 8 years ago
Any chance of an update on this issue? Would it be possible for Google to 
elaborate on 
how this might be addressed?

Original comment by greg.ang...@gmail.com on 10 Nov 2009 at 3:25

GoogleCodeExporter commented 8 years ago
I have a KML that loads a Collada model (made with SketchUp) in the Google 
Earth plugin. 
My Collada model is a warehouse (with walls and a roof) containing aisles, 
racks, and about 
200 boxes placed on the racks. I'd like the user to be able to click on a box 
and have the 
Google Earth API tell me which one of the 200 boxes was clicked, by returning 
for example 
the ID of the box. That's apparently not possible today, unless of course I do 
all the hit test 
mathematics in JavaScript myself but that's not my goal. I'd love to see that 
feature in the 
Google Earth API.

Original comment by thibaud....@gmail.com on 28 May 2010 at 5:12

GoogleCodeExporter commented 8 years ago
it takes...

Original comment by serraven...@gmail.com on 28 May 2010 at 6:13

GoogleCodeExporter commented 8 years ago
There might be a workaround: If you use a transparent placemark on top of your 
3D model, you should be able to detect the click on the placemark and show e.g. 
details of your 3D model...

Original comment by steffen....@gmail.com on 13 Jul 2010 at 2:57

GoogleCodeExporter commented 8 years ago
It's a start.  I've done this too, by using a Placemark with a MultiGeometry 
containing both a Model and a Point. I used a StyleMap with the IconStyle to be 
a transparent icon, and the highlighted style has a label.  So when you mouse 
over the icon, the label appears.  Then you can click and get the balloon.  
This doesn't work well at different zoom levels though, or if the model is 
irregularly shaped (such as a really long rectangle).  It is also problematic 
when you have models that are densely packed or where they overlap.  Another 
workaround would be to have a MultiGeometry with an invisible 2D Geometry with 
the same footprint as the model, like a shadow.  This would be better, but 
would have a performance impact, and doesn't work well unless looking straight 
down.

Original comment by john.br...@gmail.com on 13 Jul 2010 at 11:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Here's a KML file with an example of a work-around using a MultiGeometry with a 
Model and an invisible icon. It uses a StyleMap to display the label only when 
mousing over the icon. If you want the label all the time you can ignore it. 
Instead of a clear icon, I used a fake icon and set the color to almost 
completely transparent. 

Original comment by john.br...@gmail.com on 26 Jul 2010 at 5:35

Attachments:

GoogleCodeExporter commented 8 years ago
Issue 422 has been merged into this issue.

Original comment by jli...@google.com on 27 Sep 2010 at 11:34

GoogleCodeExporter commented 8 years ago
One way to deal with this is to implement hit-test results for imported 
geometry. That way it can also be used for other purposes

Original comment by vandint...@gmail.com on 28 Sep 2010 at 2:48

GoogleCodeExporter commented 8 years ago
When this is implemented, when firing an event saying that a model is clicked 
on, PLEASE include info on **which** model was clicked on. E.g. was it the 
Colliseum? The Eiffel Tower? There seems to be no other way to get this 
information.

Original comment by hutt...@gmail.com on 21 Nov 2010 at 4:02

GoogleCodeExporter commented 8 years ago
Earth API v1.007 now allows you to enable building selection and highlighting 
using GEOptions.setBuildingSelectionEnabled and setBuildingHighlightingEnabled.

This issue mentions both user generated 3D Models and the Buildings layer which 
should probably be separated from now on.  If there are still issues with 
interaction on the Buildings Layer please create a new Issue.  The focus of 
this issue should be only on 3D Models (still a confirmed feature request).

Original comment by jli...@google.com on 29 Nov 2010 at 6:00

GoogleCodeExporter commented 8 years ago
Appreciated your mail, informing me regarding a better improvments, and the Use 
of it will keep in mind for further aplications

Original comment by yrd...@yahoo.com on 30 Nov 2010 at 1:15

GoogleCodeExporter commented 8 years ago
@jli, does setBuildingSelectionEnabled let us find out *which* building was 
selected (i.e. gives us some kind of ID that enables us to query the name of a 
building or other metadata)?

Original comment by hutt...@gmail.com on 30 Nov 2010 at 11:09

GoogleCodeExporter commented 8 years ago
thanks for the information @jli, can you provide an example on how to use this 
new functionality?

greetings

Original comment by clcacer...@gmail.com on 2 Dec 2010 at 5:39

GoogleCodeExporter commented 8 years ago
When this layer to click in 3d models is active in google maps by default?

Original comment by rogerrtm on 11 Jan 2011 at 5:13

GoogleCodeExporter commented 8 years ago
I'm interested about this possible feature too.

Original comment by SbikySt...@gmail.com on 1 Mar 2011 at 10:47

GoogleCodeExporter commented 8 years ago
Any update on this feature? Patiently waiting but I'm anxious to have this 
feature :)

Original comment by pierrebe...@gmail.com on 23 Mar 2011 at 12:17

GoogleCodeExporter commented 8 years ago
We need this asap

Original comment by john.hau...@gmail.com on 6 May 2011 at 8:48

GoogleCodeExporter commented 8 years ago
I've done something about this issue, because I needed some triggers to my 
placemarks but the truth is that is a huge code for such a stupidity. I made an 
object 3d attached to a placemark and if you move the placemark, the model 
moves too and using a few functions more you can make a trigger get you get 
close, but a google's feature would be better

Original comment by vrt...@gmail.com on 6 May 2011 at 11:12

GoogleCodeExporter commented 8 years ago
Issue 352 has been merged into this issue.

Original comment by bcke...@google.com on 28 Jun 2011 at 7:24

GoogleCodeExporter commented 8 years ago
Issue 124 has been merged into this issue.

Original comment by bcke...@google.com on 28 Jun 2011 at 9:24

GoogleCodeExporter commented 8 years ago
Issue 211 has been merged into this issue.

Original comment by bcke...@google.com on 28 Jun 2011 at 9:51

GoogleCodeExporter commented 8 years ago
setBuildingHighlightingEnabled(true) is not working on 3d buildings with plugin 
ver 6.0.3.2197, 
I've tried setBuildingSelectionEnabled(true), highlighting is working with it, 
but i don't need buildigns to be clickable.

Original comment by juri.sto...@gmail.com on 6 Jul 2011 at 6:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I'm using latest Plugin (Just downloaded): 7.1.1.1580
HitTest Sample is not working from here:
http://earth-api-samples.googlecode.com/svn/trunk/examples/hittest.html
Only Globe and terrain is workung. Building fails completely.

Workaround fauls too:
ge.getOptions().setBuildingSelectionEnabled(true)
ge.getOptions().setBuildingHighlightingEnabled(true)  

No highlight, no selection.

Now there are (in some areas) nice looking 3D buildings but there is no use for 
it except that it hides some features behind the Buildings. This is just "good 
looking" but not usefull.

Also trying own DAE-Model to make accessable fails. 
Handling with Markers is not usefull. No exact position is possible and no 
floor selection can be implemented.

So we have here an good (And in near future even better ...) looking Map-App 
which does not Support essential Methods to use it propper.
This Issue is approx. 5 Years old. 

Original comment by esmann.m...@gmail.com on 11 Jun 2013 at 1:52

GoogleCodeExporter commented 8 years ago
I love Google search that instantly finds any message you want to be a good one

Original comment by worldseaintl@gmail.com on 28 May 2014 at 3:39