I am developing a web page that will include a map that dynamically aggregates point data into the bounded polygons of Mexican municipalities. The layer is already built and published on the Mapping Collaboratory portal, but currently it must be visualized using an AGOL web map or application that would have to be embedded into the website. Embedding such applications causes delays in loading webpages and problems with displaying the content in smaller sized screens, such as mobile devices. The objective, then, is to have a light-weight js web map that simply calls for the geojson description of the mapimage service and that renders the service quickly and elegantly in the js map viewer.
Here are some resources that I have found helpful:
Transform Dynamically Aggregated Time Series Results into Polygons in ArcGIS
Documentation about the MapImageLayer in the API Reference for ArcGIS API for JavaScript
Documentation about the TimeSlider widget in the API Reference for ArcGIS API for JavaScript