"and handles an array of deferreds complete with paging, and handles highlighting features, and looks better etc."You can get all that using the InfoTemplate with the PopupWindow. The only thing you miss out on is the easy way to define content (media, images, attachments, charts) via the popup template.
The Popup is just a custom InfoWindow that adds some additional capabilities like zoom to selected.
You can use the Info Template or the PopupTemplate or a function to define the content for your popup window. If your popup window only contains formatted text (numbers, dates, strings etc) then the InfoTemplate with the Popup Window should work just fine.
....anything else you try to provide is overwritten by the defaults.
You can submit an enhancement asking that we support this capability by contacting Esri Support.
var popupTemplate = new esri.InfoTemplate("Test","Date: ${datetime:DateFormat(datePattern: 'h \\'o\\'\\'clock\\' a, zzzz', selector: 'date')} Magnitude: ${magnitude}"); //create a feature layer based on the feature collection var featureLayer = new esri.layers.FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/EarthquakesFromLastSevenDays/MapServer/0", { mode: esri.layers.FeatureLayer.MODE_ONDEMAND, infoTemplate: popupTemplate, outFields: ['datetime','magnitude'] });
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.