GeoJsonLayer.GeoJsonOnFeatureClickListener无法与android-maps-utils源库一起使用

时间:2019-05-20 18:56:50

标签: android geojson

我在4月份就我所遇到的问题向Google(https://issuetracker.google.com/issues/130169022)提交了一个错误报告,到目前为止Google尚未采取任何措施。

所以我想我自己去调查一下。我从https://github.com/googlemaps/android-maps-utils/tree/master/library导入了android-maps-utils源到我的项目中。

我更新了settings.gradle以包含库模块:

include ':app', ':library'

并更新了我的build.gradle以编译源代码,而不是从编译的库中获取它:

 //implementation 'com.google.maps.android:android-maps-utils:0.5'  << taken out
 implementation project(':library')   // << use source code

我未更改我的应用代码。

编译成功,GeoJson图层正确显示了我的特征,但是单击特征时,GeoJsonLayer.GeoJsonOnFeatureClickListener不会触发!

关于我可能会缺少的任何想法吗?

还是在这种情况下,Github上的源代码与Google通过google()或jcenter()存储库实际提供的代码不匹配?

0 个答案:

没有答案