JDK-8119408 : Google map embedded in WebView no longer receives mouse input.
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 7u6
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2012-07-17
  • Updated: 2015-06-17
  • Resolved: 2012-07-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u6Resolved
Related Reports
Duplicate :  
Description
If you run the example shown here:

http://java-buddy.blogspot.com.br/2012/03/embed-google-maps-in-javafx-webview.html

You will observe that the map can not be repositioned by dragging the mouse nor can it be zoomed by double clicking on the map with the mouse or using the scroll wheel.  Further, if you extend the example to add Markers to the map, they will not receive any mouse input either.  This functionality used to work in JavaFX 2.0 and 2.1.

Note: you can still click on the controls to reposition and move the map, it is just the map itself, along with any overlays, that no longer receive mouse input in version 2.2.
Comments
This happens because of a Google API v3 bug: http://code.google.com/p/gmaps-api-issues/issues/detail?id=4238 In short, they check if the browser supports touch events, and if it does, they assume a tablet device and ignore mouse events completely. That doesn't happen with maps.google.com, so hopefully this bug is already fixed and the fix will be available in the next version of the API. See RT-22914 for more details.
18-07-2012

If this happens only when running in a browser then it probably isn't a WebView bug. There have been similar issues in Glass and Deployment for Mac that could be affecting this. We need to test this with the b18 build right away.
17-07-2012

Also, attempting to drag the map with the mouse will intermittently cause a NullPointerException: Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Clipboard.putContent: null data at com.sun.javafx.tk.quantum.QuantumClipboard.putContent(QuantumClipboard.java:442) at javafx.scene.input.Clipboard.setContent(Clipboard.java:226) at com.sun.webpane.sg.UIClientImpl.confirmStartDrag(UIClientImpl.java:178) at com.sun.webpane.platform.WebPage.confirmStartDrag(WebPage.java:860) at javafx.scene.web.WebView$19.handle(WebView.java:1202) at javafx.scene.web.WebView$19.handle(WebView.java:1199) at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:69) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:217) at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:170) at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:38) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:37) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92) at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:35) at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:92) at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:53) at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:33) at javafx.event.Event.fireEvent(Event.java:171) at javafx.scene.Scene$DnDGesture.fireEvent(Scene.java:2592) at javafx.scene.Scene$DnDGesture.process(Scene.java:2671) at javafx.scene.Scene$DnDGesture.access$8700(Scene.java:2568) at javafx.scene.Scene$MouseHandler.process(Scene.java:3305) at javafx.scene.Scene$MouseHandler.process(Scene.java:3129) at javafx.scene.Scene$MouseHandler.access$1900(Scene.java:3084) at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1524) at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2226) at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:227) at com.sun.glass.ui.View.handleMouseEvent(View.java:528) at com.sun.glass.ui.View.notifyMouse(View.java:922)
17-07-2012