I created a map on which I have generated points using JSON data. I set it up so that on click, the info window shows and it centers the map on the point. I've also created a sidebar that lists information about the various points, and I would like to be able to click an entry on the sidebar, and the associated point open the info window and center. Is there a way to interact with those points outside the map itself?
Solved! Go to Solution.
Most people are populating their sidebar with data using a grid. Once you have your grid populated, you can tie a grid click event to it. There are several threads dealing with grids and these events to give you specific examples.
Jacob,
Normally I do this by making sure the sidebar data has the ObjectId in the data (even if it is not visible) so that you can search the GraphicsLayer or FeatureLayer for the OID attribute to get the correct graphic and then use the map.infoWindow.setFeatures to set the graphic and show the infowindow.
Most people are populating their sidebar with data using a grid. Once you have your grid populated, you can tie a grid click event to it. There are several threads dealing with grids and these events to give you specific examples.
Thanks, this gets me going in the right direction!
Edit: for people from the future, check out: dgrid | ArcGIS API for JavaScript