ios - "My location button" in google map disappeared -


i'am trying add view google map both have been created using storyboard. in order this, i've changed part of code:

    mapview = [gmsmapview mapwithframe:cgrectzero camera:camera]; 

to this:

  mapview = [gmsmapview mapwithframe:self.view.bounds camera:camera];   self.mapview.mylocationenabled = yes;  [self.view insertsubview:mapview atindex:0]; 

it works, default "my location button" disappeared after this. there way default button? appreciate help.

i tried solution my location button not appearing in view (google maps sdk, ios) didn't work or maybe didn't correctly, if solution please explain in details?

i got around problem creating button storyboard , connect action.

- (ibaction)mylocation:(id)sender {  cllocation *location = mapview.mylocation; if (location) {     [mapview animatetolocation:location.coordinate]; }  } 

in case, if place created button on lower right/left corner still can't everywhere else fine. (i don't know why think because of inserting map @ index 0 or that).


Comments

Popular posts from this blog

javascript - Bootstrap Popover: iOS Safari strange behaviour -

Website Login Issue developed in magento -

Can the constants be defined inside a model file of a framework in PHP? -