Google Maps IOS SDK 1.2 need snapshot of map view -


in 1.1, gmsscreenshot class provided rudimentary way snapshot of entire screen uiimage. in 1.2, class missing, , in release notes, says this:

  • calling renderincontext: on gmsmapview layer renders correctly; allows snapshots , ui effects

unfortunately, i'm not finding case. typically renderincontext: not work on open gl drawing, figured i'd take shot anyway (it didn't work). has been successful in getting (preferred) view or screen snapshot?

i able take screenshot. here code use:

uigraphicsbeginimagecontext(mapview_.frame.size); [mapview_.layer renderincontext:uigraphicsgetcurrentcontext()]; uiimage *screenshotimage = uigraphicsgetimagefromcurrentimagecontext(); uigraphicsendimagecontext(); 

i not call straight after create map can take frames map render.


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -