google maps - Move a GMSPolyline in iOS -


i have requirement in cases gmspolyline moved 1 location another. here scenario:

  1. a user opens gmsmapview , creates gmspolyline feature.
  2. then user changes map position
  3. the user taps button center newly created polyline in new view position, is, newly created line feature moved center of new camera view.

so far can find no resources how this. there plenty of examples creating , editing gmspolyline features, not finding 1 moving entire feature. can point me example doing this?

thanks!

you have change coordinates of locations make gsmpath base of gmspolyline. each location can calculate new point using gmsgeometryoffset, draw new polyline.

or can use -(instancetype) pathoffsetbylatitude:longitude: of gmspath on gmspath describes polyline.

you use 1 or other according data have available (as example start , end target of gmscameraposition after pan)


Comments

Popular posts from this blog

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -