Closed GoogleCodeExporter closed 8 years ago
I'm not sure exactly what this issue is about. If it's just about the package
name, would it be enough to just replace getClass() with ResourceProxy.class?
I deliberately didn't implement getBitmap because I had the impression that the
scaling for different resolutions isn't working as intended. This
implementation only uses resources because then it avoids that problem. Of
course it contains the base implementation, so if that's broken it should be
fixed.
It would be better to look for bitmaps a bit more intelligently, as you
suggested in the discussion group. Please feel free to suggest a patch :)
Original comment by neilboyd
on 27 Oct 2013 at 7:39
Well it's actually about 2 issues:
1) There is no new implementation of getBitmap, but the osmdroid MyLocation
overlays use the getBitmap method for retrieving their icons (person, arrow
etc).
So with the new ResourceProxyImpl we cannot use custom MyLocation icons as the
called getBitmap always use the super.getBitmap of DefaultResourceProxyImpl.
2) Also if the new ResourceProxyImpl is at different package (as now) vs the
DefaultResourceProxyImpl, there is always a conflict between them.
That's why I suggested the move of the icons to the root of the project src.
Another fix would be indeed to replace getClass() with ResourceProxy.class
Best regards.
Original comment by devemu...@gmail.com
on 28 Oct 2013 at 12:54
I've done the simple fix in revision 1382.
Original comment by neilboyd
on 28 Oct 2013 at 7:32
Hi,
About (1) are there any thoughts?
Because the lack of getBitmap method at new ResourceProxyImpl
prevents us from using custom icons.
As osmdroid classes use bitmaps and not drawables (e.g. MyLocation overlays).
Best regards, Emux
Original comment by devemu...@gmail.com
on 4 Dec 2013 at 7:54
Hi,
I wanted to attach a patch regarding the missing getBitmap method from the new
ResourceProxyImpl,
but I cannot because of the message "Issue attachment storage quota exceeded".
I posted at:
https://groups.google.com/forum/#!topic/osmdroid/dGBMkkyZgic
I think it's essential, as right now we cannot use custom icons with osmdroid.
Best regards, Emux
https://play.google.com/store/apps/details?id=gr.talent.cruiser
Original comment by devemu...@gmail.com
on 13 Feb 2014 at 8:12
This issue was closed by revision r1432.
Original comment by neilboyd
on 16 Feb 2014 at 8:15
Original issue reported on code.google.com by
devemu...@gmail.com
on 19 Oct 2013 at 2:49