Center PopupTemplate when using ClusterLayer

2788
1
08-19-2015 01:07 AM
KarthikJ
New Contributor

I am trying to use the below code in my applicationhttps://developers.arcgis.com/javascript/jssamples/layers_point_clustering.html. The only change I am doing is changed the height from 100% to 400px for map. The PopupTemplate is not completely visible in some cases. I have to move the map to see the entire Popup.

0 Kudos
1 Reply
YousefQuran
Occasional Contributor

Hi,

You can use the Bootstrap map, it is have the Auto-pan method.

Anyway, a simple code will solve this problem ..
try to implement a method that take a map point after popup fired, then make it a center of your map.

hope this help you.
Regards.

0 Kudos