Google Maps in Swift - Camera not updating -


i'm using google maps in swift , in viewdidload.

i providing code:

let camera: gmscameraposition = gmscameraposition.camerawithlatitude(48.857165, longitude: 2.354613, zoom: 8.0) mapview1.camera = camera 

however, when executing program, camera not updating. using

@iboutlet weak var mapview1: gmsmapview 

and have hooked outlet correctly

you need implement

mapview1.animatetocameraposition(camera) 

Comments

Popular posts from this blog

ios - Memory not freeing up after popping viewcontroller using ARC -

Java JSoup error fetching URL -

webstorm - PhpStorm file cache conflict with TypeScript compiler -