iOS google maps sdk custom call out view and marker centering -
hi guys working google maps sdk now, kinda have 2 doubts:
callouts:
how customize callouts, had hard time trying figure out way customize existing stuff not. found this though.
gmsmarkers:
i want center marker in map view i.e, marker should in particular position set , current zoom level should maintained.
i did marker centering showing callout marker , want center callout centered.
thanks in advance.
for gmsmarker question: have create camera points marker position , set mapview camera it
somemarker = [[gmsmarker alloc] init]; somemarker.position = cllocationcoordinate2dmake(lat, lng); somemarker.map = mapview; gmscameraposition *camera = [gmscameraposition camerawithlatitude:somemarker.position.latitude longitude:somemarker.position.longitude zoom:13]; [mapview setcamera:camera];
Comments
Post a Comment