Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mapview图片变黑 #3

Open
dys1715 opened this issue May 12, 2016 · 10 comments
Open

mapview图片变黑 #3

dys1715 opened this issue May 12, 2016 · 10 comments

Comments

@dys1715
Copy link

dys1715 commented May 12, 2016

在使用LocationLayerTest过程中发现,当把传感器开启之后,mapview load进来的图很容易就变黑了,不显示图片了,并且log显示如下信息:
05-12 14:18:31.710 12247-12247/com.onlylemi.mapview I/View: ssignParent(ViewParent parent) parent is: null
05-12 14:18:31.710 12247-12247/com.onlylemi.mapview W/InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
05-12 14:18:41.430 12247-12261/com.onlylemi.mapview W/art: Suspending all threads took: 16.904ms

@onlylemi
Copy link
Owner

@dys1715 收到,我手机上没问题,请告诉我你的手机型号和Android版本号,谢谢!

@dys1715
Copy link
Author

dys1715 commented May 13, 2016

@onlylemi 我用的测试机型有华为P8、坚果、乐视1,系统的话5.0。在LocationLayerTest这个里面看着比较明显,拖动地图的时候,可以看到内存蹭蹭就涨。

@onlylemi
Copy link
Owner

@dys1715 内存这块优化的不是很好,目前正在优化和修复,之后会发布v1.1,如果你有更好的方法,然后给我pull request,非常欢迎!

@dys1715
Copy link
Author

dys1715 commented May 16, 2016

@onlylemi LocationLayer类,draw方法,float[] goal修改为全局变量,canvas.drawBitmap等操作的时候,不要直接使用new Paint()。

@WellJack86
Copy link

百度地图不知道是不是跟你的一个原理?

@onlylemi
Copy link
Owner

@WellJack86 应该不是吧,室外数据比较大,

@hustzxd
Copy link

hustzxd commented Jun 12, 2016

我测试的时候也是图片会变黑,请问现在有方法可以解决吗?

@onlylemi
Copy link
Owner

hey @hustzxd ,

你的系统版本是多少呢,变黑应该在5.0以下会出现,目前正在解决这个问题

@ydcool
Copy link
Contributor

ydcool commented Sep 19, 2016

android 4.1.1 也出现 变黑/变花 现象。复现:将地图旋转缩放一下,然后�长按不放,就会�一点一点变花掉。

@ydcool
Copy link
Contributor

ydcool commented Sep 20, 2016

@WellJack86 百度高德这种地图都是矢量的,这个是基于位图。感觉矢量性能应该更好些。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants