I need to pass a parcel number to a Flex application and have the application zoom to the parcel specified in the URL
Thank You, I will give the Suggestions a try
A good DIY solution is using the IBrowserManager interface.
Adobe Flex 4.6 * Using the BrowserManager
You may need to use setTimeout to wait for the map to load and all your layers. Something like this.
map.addEventListener(MapEvent.LOAD, function():void { setTimeout(function():void { bm = BrowserManager.getInstance(); bm.init(); var o:Object = URLUtil.stringToObject(bm.fragment); var type:String = String(o.view); if (type != "") { switchMap(views[type]); // I use it for custom views } }, 500) });
Les,
If you are talking about a Flex Viewer application than you can use the eSearch Widget for this:
http://www.arcgis.com/home/item.html?id=5d4995ccdb99429185dfd8d8fb2a513e
If you talking about a custom Flex API application then you will have to develop your own capability to do this using a QueryTask.
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.