简体   繁体   English

带有科尔多瓦触摸事件的Google Maps API被忽略

[英]google maps api with cordova touch event is ignored

I'm working on a Cordova application , on Android platform, and I need a map to define some regions through Google maps API. 我正在Android平台上的Cordova应用程序上工作,并且我需要一个地图来通过Google maps API定义某些区域。

But when the map is rendered, the touch event is ignored, ie i cannot move the map, neither push buttons on it. 但是,当渲染地图时,触摸事件将被忽略,即我无法移动地图,也无法按下地图上的按钮。 I tried tracing Logcat, but it only shows this: 我尝试跟踪Logcat,但是它仅显示以下内容:


V/WebViewInputDispatcher(27743): blockWebkitDraw V / WebViewInputDispatcher(27743):blockWebkitDraw
V/WebViewInputDispatcher(27743): blockWebkitDraw lockedfalse V / WebViewInputDispatcher(27743):blockWebkitDraw锁定为false
V/webview(27743): singleCursorHandlerTouchEvent -getEditableSupport FASLE V / webview(27743):singleCursorHandlerTouchEvent -getEditableSupport FASLE

However, this verbose is shown every time i click on a button or anything... So I'm not sure if this is the problem. 但是,每当我单击按钮或任何东西时,都会显示此详细信息。因此,我不确定这是否是问题。
Any comments on this issue will be appreciated. 任何对此问题的意见,将不胜感激。
Thanks in advance. 提前致谢。

I solved the problem. 我解决了问题。 It seems like I was trying to pass a null paramater-I was passing JSON data from Java to JavaScript- to the map and this avoided the ClickListener to be activated on javascript side. 似乎我正在尝试传递一个空参数-我正在将JSON数据从Java传递到JavaScript-到地图,这避免了在JavaScript端激活ClickListener。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM