AnsweredAssumed Answered

Center info window using AGOL summary viewer template

Question asked by smittynm on Feb 26, 2015

SO I have created several online maps using the most recent version of the Summary map viewer on GitHub.  Each of these viewers is then embeded into a web page.  


The issue I am having is that when the user clicks on a point, the info window opens witht the correct information, but it is not recentering on the map when clicked.  So if the user clicks on a point near the edge of the map, the window opens, but the majority of the window does not show because it falls outside of the map window.  For the user to then see the info window they have to pan the map.


What snippet of JS do I need to add to the code to get it to recenter when the user clicks on a point?