Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3350] [Android] Map module View method snapshot not working correctly

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2016-03-20T19:02:24.000+0000
Affected Version/sAppcelerator Studio 4.3.0
Fix Version/sn/a
ComponentsAppcelerator Modules
Labelsandroid, crashing, map, snapshot, snapshot_not_working_correctly
ReporterMarian Kucharcik
AssigneeShak Hossain
Created2016-03-10T22:35:46.000+0000
Updated2016-03-20T19:02:24.000+0000

Description

Hi guys, I have problem with Google maps integration on Android app. I need to add small map view to scrollable as shop detail info. On iPhone, everything works fine. On android, when I add mapView to mainView, app crashes. So I tried to add small mapView to another window, wjich is now appearing correctly and tried to convert it to image somehow. I read documentation and found out, that there is snapshot() method for Android and eventlistener onsnapshotready. Problem is, that this method does nothing for me and eventlistener never gets fired, so I can't get image from current map - I call this method in app.js after map creation. I tried to create template window and add map to it and add eventlistener(open) and there call mapView.snapshot - this crash application. Is there another way to convert map to image(on background, without displaying it)? Or how to solve crashing when I add map view to another view?(scrollview in my case). I use nappDrawer as side menu, I wrote some time ago problems with maps and nappDrawer and it should be fixed now... Note: I test on device, not in emulator(Motorola Moto G2, Android 4.4.4) Thank you for your answer. Best regards, Marian Kucharcik

Comments

  1. Jebun Naher 2016-03-13

    Hello, Thanks for your report. Could you please share a runnable test case with steps to reproduce and environment so that we can figure out this issue. Regards.

JSON Source