Select to view content in your preferred language

callout marker should display at center of map

608
1
10-07-2017 05:34 AM
chiragshah4
Emerging Contributor

In my application we show callout on the marker now i need to show that Graphics at the center of the map. Is there any method to do it or need to used viewPoint Method of AGSMapView?

And callout window display glitch animation when it open and user start dragging map. Is there any way to stop it?

Tags (2)
0 Kudos
1 Reply
Nicholas-Furness
Esri Regular Contributor

Hi Chirag,

To center the map on the marker, yes, you should use the setViewpointCenter:completion:() method on AGSMapView and display the callout in the completion block to the above method. Since this is a point graphic, you can pass in the graphic's geometry. That'll animate the map view to put the marker in the center.

Could you provide more information on the callout display glitch please? Does it happen on both the simulator and  the device? I'll try it out here to see if it's something obvious but would be helpful to get more details.

Cheers,

Nick.