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 -

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -