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
Post a Comment