Code Gallery
Sample Flex Viewer
|
This Sample Flex Viewer (SFV) is an update to the previously posted versions of the SFV, that were designed to showcase some of the core capabilities of the ArcGIS Platform through a simple, modern, Web 2.0 style user interface. This sample may be used in compiled form with simple modifications to its configuration file, or its source code can be used by application developers to further explore and understand some of the best practices and programming patterns of the ArcGIS API for Flex. This version of the SFV includes several enhancements developed under the ESRI Situational Awareness solution, including some minor enhancements to the application framework as well as several new functionalities including a Query Builder tool, a Geoportal Extension interface widget, a Directions/Routing widget, and several others. Please read the What's New document for further details.[updated 12-03-09]
|
|
Report Inappropriate Content: This Code Gallery is intended for the free exchange of code related to ESRI software products. Let us know if this entry is inappropriate (e.g., a download for a commercial product).

Live View posted by vidalpj on Nov 17, 2008 1:44 PM
A link to the live demo of this would be great. Thanks for the sample..
Absolutely... posted by gknight on Nov 18, 2008 7:46 AM
Fantastic!!!! Love the dev guide as well. Thank you SVT!!!
Flex Api live demo posted by GeoGranit on Nov 20, 2008 12:22 PM
To see the flex API in a live website, just visit the http://www.sigquebec.com in the ArcGisFlexAPI section. Enjoy
Time Saver! posted by MichaelK on Nov 20, 2008 6:34 PM
This design pattern saved me a ton of time! Instead of spending weeks developing a framework I can concentrate on modules of functionality instead of starting from scratch. Thanks!
tutorial on creating widgets posted by DanDanGong on Nov 20, 2008 8:39 PM
Greetings all, Is there a tutorial or some resources on how to create widgets so i can plug them in the framework. It is a great example but i would love to be able to create some extra functionality by building extra widgets. Cheers
Developer's Guide is in the zip posted by 5339 on Nov 20, 2008 10:03 PM
DanDanGong, The Developer's Guide is in the source code zip file inside the zip you download from here. It covers everything you need for developing your own widget.
Response to Live Demo Request... posted by SampleViewerTeam on Nov 21, 2008 6:50 AM
Thanks for the feedback! We are working on getting a hosted version of the Sample Flex Viewer up on esri.com. We will post that link as soon as it becomes available.
Sample Flex Viewer Updated posted by SampleViewerTeam on Nov 24, 2008 10:36 AM
We just wanted to let you know that the Sample Flex Viewer has been updated (Build 11.21.2008) with the following changes: support for the preloading of multiple widgets; minimum match score is now a configurable option in the Locate widget; a new application theme/stylesheet called "lighterside" is now available. Additional details of these changes can be found in the "WHATSNEW.TXT" file included in the downloadable package.
api version posted by harley on Dec 03, 2008 2:15 AM
hey, this is a great start up app. and the coding "best practices" was not how I was coding my application.. so, I am really glad to see this. . included is version FlexViewer-1.0 swc. what verion of the flex api is being used here? my data was posting nicely into this app across domains too. agslib-1.0-2008-10-22.swc is the last upload I have and currently not able to post my private arcgis 9.3 server map services with this version. I can view data from server if viewing app on file system, but not going from one website to another private webservice with a properly configured crossdomain.xml file. For now, I will try to use the included swc file for all api calls. I will check this site to see if there is a more current version. Thanks for this viewer and api
swf file size is small posted by harley on Dec 03, 2008 2:43 AM
is there a simple reason why when I compile the viewer the swf is twice the size? it exploded from 394kb to 658kb. I did add one url to the config.xml file then compiled the viewer.
ArcGIS Flex API version posted by SampleViewerTeam on Dec 05, 2008 12:22 PM
@harley Thanks for the comment! The Flex API version is same as yours, agslib-1.0-2008-10-22.swc, which is included in the src.
swf size posted by SampleViewerTeam on Dec 05, 2008 12:25 PM
@harley By default, when you build your Flex application, the SWF is generated for debugging (in bin-debug folder). Only when you do a explicit release build the size of the swf will be reduced and optimized.
zoom level posted by baileyr on Dec 05, 2008 7:35 PM
i've added a dynamic map service to the list under the map pull-down but i cant zoom in closer than 1:4509. is there a way to adjust this setting to zoom closer? say... 1:500? thanks! richard.bailey@cityofdayton.org
zoom level posted by SampleViewerTeam on Dec 06, 2008 4:53 AM
The zoom levels are determined by the first map service added to the map (first map service in config.xml). Make sure your map with more detailed scales is the first one added to the map.
Hosted Version??? posted by srpartha on Dec 11, 2008 9:18 AM
Could you explain a little bit further about the "hosted version" at ESRI that you are working on now? I just need to avoid some confusions so that I can make sure that I am duplicating the effort now modifying the viewer to arrive at the same result that I am thinking of. Thanks..
"hosted" meaning posted by SampleViewerTeam on Dec 19, 2008 3:49 AM
@srpartha The "hosted" sample viewer refers to a live demo running from esri.com domain. Nothing else.
storing markers to SDE posted by varun.chdvrp on Dec 19, 2008 12:49 PM
HI, How to store user defined markers back to SDE from FLEX api, when flex can't write directly to ARC GIS server. thanks.
Great stuff! posted by arepsher on Dec 20, 2008 9:14 AM
This is a wonderful product for someone with no programming background to get into the world of Flex and REST! Thanks SVT!
Programaticly pop out a widget posted by DanDanGong on Dec 22, 2008 1:42 PM
Greetings all, Is it possible to programaticly make a widget visible once a certain zoom level is reached? Like not show the widget initially but after the user zooms to a particular zoom level to make the widget appear. Cheers
Programmatically opening a widget posted by srpartha on Dec 30, 2008 8:15 AM
If you are looking for a zoom event, you have to listen to the Appevent.SET_MAP_NAVIGATION event. Check the tool parameter of the object that this event carries. If the tool is Navigation.ZOOM_IN or Navigation.ZOOM_OUT then invoke a method that checks the current zoom scale of the map. If it is greater than or less than a particular value do the following: If you are doing this in a widget, you already have the configData object inherited from the basewidget. 1. Go through a for loop to get the id of the widget from the widgetlist in the configdata. var index:Number; for(var i:int=0;i
Alert Moderator
Programmatically Opening a widget - continued.... posted by srpartha on Dec 30, 2008 8:17 AM
for(var i:int=0;i
Alert Moderator
Sorry for the truncation. posted by srpartha on Dec 30, 2008 8:22 AM
This board does not seem like supporting the pasting of code. Anyways, here it is descriptively: for ( i from 0 to configData.ConfigWidgets.length) if (configData.ConfigWidgets[i].label == "label of the wid to be opened" then var index = configData.ConfigWidgets[i].id as number) dispatch a widget_menu_clicked event with this index.
cached "live maps"? posted by jrfishe1 on Dec 31, 2008 7:30 AM
First, thanks so much for producing this, it let me get started with a really great-looking app with a very small learning curve! One problem I'm having is that for the "live maps" if I set the type to "tiled" they don't display at all. The services I have are cached to match the ArcGIS Online scale levels, and I have no problem getting them to behave properly in the webADF applications or ArcMap, but they only work in this flex viewer when set to "dynamic". Any ideas?
Programmatically opening a widget posted by DanDanGong on Jan 13, 2009 10:03 PM
Greetings, I tried listening for the AppEvent.SET_MAP_NAVIGATION event in the MapManager.mxml code but this never gets called. So when i double click on the map or select the zoom in tool the function that monitors that event never gets called. Any idea why this might be happening? Is MapManager the right place to monitor for this event?
Updated Version Available posted by SampleViewerTeam on Jan 15, 2009 7:21 AM
Greetings! We just wanted to let you know that a new, updated version of the Sample Flex Viewer is availble for download. Thanks, The Sample Viewer Team
mouse move, coordinate display posted by sertac on Jan 18, 2009 1:23 AM
Great project. Many thanks for this sample. As I'm new to flex programming is there a way to implement showing coordinates on the map on mouse move. Many thanks again.
measurement does not show with projected layer posted by huailinwang on Jan 20, 2009 8:32 AM
Great project. However, it seems the measurement do not show up with projected data layer. It works with unprojected data. Any one has similar problem?
Proxy posted by Jiriteach on Jan 28, 2009 1:56 PM
Hi Guys, Just wanting to find out. I notice there is a tag in the config.xml now as follows:asp or set to whatever you use.
This is working on the Sample JavaScript Viewer. Has it not been implemented on the Sample Flex Viewer? I can't get it to use the proxy. I had added the proxy.config and the proxy.ashx but still nothing.
Any ideas? I need to use the proxy to access feeds where there are no cross-domain.xml.
Cheers
No source files with download posted by guess on Jan 30, 2009 10:43 AM
It appears that no source files were included in the Sample Flex Viewer download. I've referenced the Dev guide and the files indicated are not there. I was trying to import the FlexViewer project files into the Flex Developer and the designated directory did not contain any project files.
Source Code? posted by blaird on Feb 03, 2009 11:54 AM
What happened to the source code??
Source Code posted by SampleViewerTeam on Feb 03, 2009 1:46 PM
The source code for the Sample Flex Viewer can be found in the download package at the root level. Please open the file "flexviewer-src-1.0.zip"...
will not import posted by rjcoleman on Feb 04, 2009 7:55 AM
When I try to import the flex builder project as an archive file (.zip) it fills the progress bar and then does nothing. When I unzip the flex viewer folder and then try to import it as a project folder it does the same thing. What am I doing wrong? I am able to get other projects imported (the ArcGISFlex project imported with no problems)
n/m posted by rjcoleman on Feb 04, 2009 9:10 AM
nevermind, I figured out my problem. Reading helps.
will not import posted by alfredw on Feb 09, 2009 11:50 AM
will not import posted by rjcoleman on Feb 04, 2009 7:55 AM When I unzip the flex viewer folder and then try to import it as a project folder it fills the progress bar and then does nothing. What am I doing wrong? Same problem as posted posted by rjcoleman on Feb 04, 2009 7:55 AM. I am reading and I think following the Developers Guide pages 13 - 15 with no luck. Can anyone assist?
Use forum for discussion posted by SampleViewerTeam on Feb 23, 2009 2:47 PM
If you have a topic want to be discussed with the Flex API community, the forum is a good place to start: http://resources.esri.com/arcgisserver/apis/flex/index.cfm?fa=forums
source code posted by schla1jw on Mar 06, 2009 7:44 PM
Where is the source code for the API? Am I missing it somewhere? I notice the SWC for the API but no source. thanks
Problem with local services -- please help posted by chaudhry1 on Mar 12, 2009 11:07 AM
Great App but if i use my local services i get the following error.. SecurityError: Error #2048: Security sandbox violation: http://arcgistest/ogf/index.swf cannot load data from http://gisonline.wvdep.org/ArcGIS/rest/services/Imagery/WV_color03_WGS84/MapServer?f=json. at()[C:\software\cruisecontrol-2.7.2\projects\checkout\flex_api\api\src\com\esri\ags\tasks\BaseTask.as:392]
at mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at mx.rpc::AsyncToken/http://www.adobe.com/2006/flex/mx/internal::applyFault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncToken.as:179]
at mx.rpc.events::FaultEvent/http://www.adobe.com/2006/flex/mx/internal::callTokenResponders()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\events\FaultEvent.as:169]
at mx.rpc.http.mxml::HTTPService/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\http\mxml\HTTPService.as:285]
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:225]
at mx.rpc::Responder/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53]
at mx.rpc::AsyncRequest/fault()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:103]
at DirectHTTPMessageResponder/securityErrorHandler()[C:\autobuild\3.2.0\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:389]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()
MouseEvent.ROLL_OVER posted by jabahooie on Mar 28, 2009 10:01 PM
I've added a query task that loops through graphics in a dynamic layer and adds a ROLL_OVER event to each. However, the event is never fired. Any help would be appreciated.
Where is the src? posted by froberts on Apr 02, 2009 4:34 PM
Just downloaded this today April 2, 2009 and the src directory was not there. Will that be provided like in the original sample?
Quick & Pleasing Base Application posted by rcraigholmes on Apr 08, 2009 6:43 AM
Thanks for sharing the code. I was able to get some eye pleasing internal interactive mapping sites up and running when time was in short supply. R. Craig Holmes GIS Specialist ONTARIO PROVINCIAL POLICE
MyFirstWidget posted by maracinia on Apr 22, 2009 2:31 PM
Hi, Thanks for the great sample. I'm having a problem developing a widget. I've followed the instructions in the Developers Guide and I'm getting an error when I try to run the index.mxml. On page 33 the code to paste into the config.xml is:
I'm wondering is "widgetTempalte" the error? I tried changing it to "WidgetTemplate" but it still didn't work.
Any suggestions? The error I'm getting is Windows - No Disk. I'm running Vista Ultimate
Issues with determining graphic symbol type posted by joelacombe on Apr 23, 2009 6:53 AM
I am having problems determining the type of graphic symbol when cycling through graphics added via the draw widget, specifically for TextSymbols. Please reference the following forum post: http://forums.esri.com/Thread.asp?c=158&f=2421&t=279863#866172 I am trying to loop through graphics added to a graphics layer using the draw widget and then recreate those graphics for serialization to a service. for each graphic, obviously I need to determin the geometry and symbol types and cast to the appriate object, i.e. if symbol is TextSymbol, then cast the symbol to a TextSymbol object. this works if I run this loop in the Draw widget. However, if I run the loop in a seperate widget, i.e. my print widget, I can access the graphics layer, determine and cast the geometry type, but I cannot determine the symbol type using the "is" keyword nor can I cast the symbol to the approapriate symbol type, i.e. TextSymbol. Again, it works in the drawing widget itself, or any component where I am creating the graphics layer and adding to the map and performing the loop all within the same component. I only get the problem when I extract the graphics layer from the map object within another widget. Any thoughts on this?
Project not right? posted by Wizard2k on Apr 29, 2009 10:49 AM
I must REALLY fail at reading, but when I import my project...I end up with a FlexViewer/bin-debug/ folder with /com/ and all that inside it. But I also end up with a FlexViewer/com/ folder which is identical to the one above. Problem is if I make changes to any of the source files in the /src/ folder they push their changes to the /bin-debug/com/ folder but the website is referencing the FlexViewer/com/ folder instead of FlexViewer/bin-debug/com/ folder like (I think) the Guide shows. This causes endless problems but, it starts as soon as I import the project. What on Earth have I done wrong?
Rocks in Linux too! posted by lagerratrobe on May 04, 2009 12:12 PM
Nice! Just saw a presentation by John Sharrard on web mapping and downloaded the sample viewer afterwards. Got the viewer up in about 5 minutes - on an Ubuntu Linux 8.04 box! Gonna try to get a WMS layer displayed in it next, but even without that, I might just have found my replacement for Google Maps. Thanks for the sample.
Display Widgets at App Load Time posted by azatrain on May 08, 2009 12:32 PM
I'd like to have a couple of widgets displayed in their minimized state when my application loads. How and where would I code for that?
Display Widgets at App Load Time posted by azatrain on May 08, 2009 12:39 PM
Sometimes asking the question is all you need to find the answer. I was able to get the widgets to display at app load time by adding a preload="true" parameter to the config.xml file. Now I just need them to display in the minimized state by default. I tried doing that in the onLayerLoad function in WidgetManager.mxml with the following code, but it isn't working. Anyone have any ideas? var widget:IBaseWidget; widget = widgetTable.find(id) as IBaseWidget; widget.setState(BaseWidget.STATE_MINIMIZED);
Display Widgets at App Load Time posted by azatrain on May 08, 2009 12:55 PM
Set the preload parameter to "minimized" to get the widgets to display in their minimized state at app load time ...
why the downloaded version couldn't match url "http://flex888.com/lab/geoweb/flexviewer/" posted by DennySilver on May 20, 2009 11:52 PM
why the downloaded version couldn't match with url= "http://flex888.com/lab/geoweb/flexviewer/" ,just match with url= "http://mapapps.esri.com/serverdemos/FlexViewer/index.html" why not synchronize? please update,thank you!:)
ArcGIS Server 9.31. and Flex API 1.2 posted by ahmeix0j on May 22, 2009 11:08 AM
When can we expect to see an updated Sample Flex Viewer for ArcGIS Server 9.3.1/ArcGIS API for Flex 1.2.
The Flex Viewer is updated posted by SampleViewerTeam on May 27, 2009 10:06 AM
The Sample Flex Viewer is updated. It's compiled with the latest Flex API 1.2 and Flex SDK 3.3. For details, please read the WHATSNEW.txt included in the release package.
@Wizard2k posted by SampleViewerTeam on May 27, 2009 10:11 AM
The bin-debug is a Flex Builder generated folder. It's created once the Flex Builder project created (imported). You only need work on the files in FlexViewer/src/* folders. Sounds like it's Flex learning curve thing. But again, the best place to ask question is at the Forum. There are lots of helping hands there. Thanks for using Flex Viewer.
Im trying to use the widget LiveLayerWidget but I have always the same error message posted by omargaafar on Jun 02, 2009 8:40 AM
Hi, I have a serious problem since yesterday with my Sample Flex Viewer (the new version 29may2009) on my AGS Enterprise 9.3. I’m trying to use the widget LiveLayerWidget but I have always the same error message: [RPC Fault faultString="" faultCode="400" faultDetail="Unable to perform query. Please check your parameters."] With the forum, I think that is the query parameters, but I don’t know how fix it. Regards, Omar. QUERY TEST on my rest Folder------------------------------------------------------------ { "error" : { "code" : 400, "message" : "Cannot perform query. Invalid query parameters.", "details" : [ "'geometry' parameter is invalid" ] } } My Layer Parameters --------------------------------------------------------------------------------- ArcGIS Services Directory Home > carto2003 > carto03 (MapServer) > AEROPORT Help | API Reference Layer: AEROPORT (ID: 0) Display Field: NOM Type: Feature Layer Geometry Type: esriGeometryPoint Description: Definition Expression: Copyright Text: Min. Scale: 0 Max. Scale: 0 Extent: XMin: 416933,609 YMin: 3749231,0393 XMax: 664190,9591 YMax: 4091926,1797 Spatial Reference: 32632 Fields: • OBJECTID (Type: esriFieldTypeOID, Alias: OBJECTID) • Shape (Type: esriFieldTypeGeometry, Alias: Shape) • ID (Type: esriFieldTypeDouble, Alias: ID) • NOM (Type: esriFieldTypeString, Alias: NOM) • XMIN (Type: esriFieldTypeDouble, Alias: XMIN) • XMAX (Type: esriFieldTypeDouble, Alias: XMAX) • YMIN (Type: esriFieldTypeDouble, Alias: YMIN) • YMAX (Type: esriFieldTypeDouble, Alias: YMAX) • X (Type: esriFieldTypeDouble, Alias: X) • Y (Type: esriFieldTypeDouble, Alias: Y) • CODE_DELEG (Type: esriFieldTypeString, Alias: CODE_DELEG) Supported Operations: Query Layer My XML File---------------------------------------------------------------------------------------------------
Adding WMS Layer posted by dhiren on Jun 02, 2009 1:27 PM
How do you add one or more wms layer(s) to "Live Maps" Thank you
clean-up update posted by SampleViewerTeam on Jun 05, 2009 1:26 PM
We just posted a update to clean up Mac files inside the zip.
flexviewer-1.0.swc not found posted by jjohnson151 on Jun 10, 2009 4:34 PM
Where can I find the flexviewer-1.0.swc library file? It is not included under the FlewViewer root folder for the 6-5-2009 distribution.
Layer Transparency problem posted by chrisgray87 on Jun 10, 2009 10:56 PM
I just downloaded the latest Sample Viewer and I am having a problem with the Layer Transparency in the Live Maps widget. The transparency slider works just fine but the names of the map services do not reflect the actual names I have set in my config.xml. The names show up as ArcGISDynamicMapServiceLayer93 and ArcGISDynamicMapServiceLayer94. Any ideas as to why this is? I am using flex Builder on a Mac to do my configuration. BTW, I am new to flex and am enjoying the learning curve...great job with the Sample viewer!
Livelayerwidget_police posted by arocco on Jun 11, 2009 5:04 PM
i am not able to apply the filter to the police stations layer. What is the code actually supposed to look like? Has anyone gotten this to work?
ADDRESS
ADDRESS (Example: 29TH ST )
Layer Transparency problem fix posted by ahmeix0j on Jun 11, 2009 11:17 PM
http://forums.esri.com/Thread.asp?c=158&f=2421&t=274404&mc=5#msgid847792
Cant use own basemaps instead of ESRI basemaps posted by stuart.blumberg on Jun 15, 2009 1:57 PM
I'm trying to substitute my own basemaps for the ESRI service basemaps. I substituted my map service URLS for the ESRI basemap URLS in the config.xml and nothing comes up except the banner. If I only sub one ESRI URL with my service and leave one ESRI service it will work just fine but I dont want to use ESRI services as my basemaps. Is there a way to take out the two ESRI service basemaps and put my own in there? I'm not using the src sample flex viewer Im using the other flexviewer that came with the download. There is no mapmanager.mxml. Thanks.
dynamic map service for the basemap? posted by hslee on Jun 15, 2009 5:18 PM
I want to use the dynamic map service from my local arcgis server. It works when basemaps have titled map service but when I put only dynamic map services the app is not working. Is there anyway I can use only dynamic map service for the basemap?
How to customize the Search result info page? posted by jinghuang on Jun 18, 2009 9:10 AM
I am trying to customize the Search result message page in the Search widget to add more field values, add take out some default fields. Where can I start from? I even could not find the source code. Your help is much appreciated!
Cannot view map in Flex viewer on PC posted by jcornelius750 on Jul 06, 2009 1:19 PM
I have installed the Flex viewer on the ArcGIS server box and have not problem viewing our City data. However, when I try to view the same map on my PC the map is not visible. The banners and widgets are tere but not the map. I have placed the Crossdomain.xml onto the ArcGIS server www.root and I have most up-to-date Adobe Flash on both systems.I have also cleared to cache and get the same view both in IE and Firefox. Any idea's as to what is going on? Jack Cornelius
HOW TO Control FlexViewer Widget ScrollPolicy posted by overman on Jul 21, 2009 7:11 PM
while customize Widget, I added a VBOX in WidgetTemplate, like: And then in the VBOX, I add some FormItem or Accordion, something weird, because sometimes horizontalScroll and verticalScroll is there, others, they are disappeared, even I set horizontalScrollPolicy="on" verticalScrollPolicy ="on" in the VBOX. I just cannot contorl the scroll, any ideas? Thank you very much.
Urgent: HOW TO Control FlexViewer WidgetTemplate ScrollPolicy posted by overman on Jul 21, 2009 8:50 PM
EVEN I set VBox horizontalScrollpolicy = 'on',it cannot work. Please help me.
Using local map services posted by kjoshi on Aug 12, 2009 11:10 AM
@stuart.blumberg: Can you check to see the spatial reference of your local map service? It appears from my tests that there are display issues if the map services have different spatial references.
Sample Viewer doesn´t show basemaps posted by Q2 on Sep 11, 2009 4:25 AM
Hi, I´ve downloaded and imported the "sample flex viewer" into flex builder but any basemap is shown any ideas? thanks for your help
Flex Viewer on google map posted by montus03 on Sep 15, 2009 4:31 AM
Is it possible to show the FlexViewer on google map's base layer rather then ESRI basemap?
Image Server Data posted by steve.fowler on Sep 30, 2009 5:44 AM
This may have already be covered, but I couldn't find an answer. How do you add Image Server date to the Sample Flex Viewer?
Confused about implementation posted by dgrecocov on Oct 09, 2009 10:16 AM
Hi everyone. Is the flexviewer-src-1.0.zip essential? I downloaded the Flex Viewer and got everything working fine. When I began to look at Widgets, many of them referenced placing information in src/com/* directory, which is not included under the main FlexViewer folder. Further, the Read Me documentation references following the FlexViewer/com/ path (no src). I guess basically my question is, do I use the FlexViewer Folder that is unpacked in the download package or the FlexViewer folder contained within the zip folder referenced above? I am pretty new at this and am relying solely on the Read Me docs so any insight is really appreciated. Thank you.
Need to show copyright for maps... posted by Miguel on Oct 17, 2009 11:28 PM
Greetings. The FLEX Viewer is the workhorse for our Flex related demos. We have modified and augmented it with many of the add ins posted on this site. However, something that it is lacking and we desperately need, is the capability to display a copyright related note for each map that requires it. This is feature is necessary for many locations outside of the U.S. where data is either proprietary, or where data that is free, still needs to be copyrighted. The perfect example of the latter includes Open Street Map, which when used needs to be attributed with the following: "(c) OpenStreetMap (and) contributors, CC-BY-SA" at minimum. So a great addition to the core, or even as an add in, that would allow the incorporation of copyright information for each map would be would be much welcome. Thanks for a fantastic implementation.
GeoRSS in Sample Flex Viewer posted by lennonc on Oct 19, 2009 5:58 PM
Can't seem to get the sample GeoRSS working. I'm getting the following error: A problem occured while parsing the RSS feed. Error #1009
Contents widget layers missing posted by kchesla on Oct 26, 2009 7:56 AM
My FlexViewer often does not recognize my REST services in the Map Contents widget. I know there is an error/problem immediately when the expandable triangle next to the layer list is missing. I know the services are running and the REST cache has been cleared. Any ideas?
Map does not display after Flex build posted by gtuchristina on Nov 03, 2009 7:41 AM
I have been able to display the Sample Flex Viewer when I post the Flex Viewer folder in the inetpub/wwwroot folder. However, when I manipulated the flexviewer-src-1.0.zip file, I am unable to view the map after the build. Suggestions please...
Map does not display after Flex build posted by gtuchristina on Nov 03, 2009 7:55 AM
I fixed my issue. I was using Flex version SDK 3.4. When I changed the SDK back to 3.2, it worked great.
problem with layer transperancy labels posted by paulheinrich on Nov 05, 2009 11:36 AM
I just updated my application to the latest version of the Sample Viewer and made the same alterations to the config.xml and other xml files I have been modifying. Everything works great except I'm getting weird labels for my layers in the LiveMapsLayer widget. In the old version layer names were the same for both the Layer Visability and Layer Transparency views. Now for Layer Transparency I'm seeing names like ArcGISDynamicMapServiceLayer93 and ArcGISDynamicMapServiceLayer94. I've been comparing the xml and mxml for the old and new versions of the widget, but I'm finding no differences. Can anyone suggest where this is happening?
re: problem with layer transperancy labels posted by bjorn on Nov 11, 2009 10:14 AM
@paulheinrich The unexpected name is probably because of an API update in version 1.1: "The name property on Layer is no longer overridden." http://resources.esri.com/help/9.3/arcgisserver/apis/flex/help/index.html#whats_new.htm I believe there is another thread talking about this somewhere on the Flex API forum, but can't seem to find it now.
Geoportal Search Widget posted by mcorreab on Nov 12, 2009 7:19 AM
Where can I find the Geoportal Search widget for 9.3.1? mentioned in the Geoportal documentation http://geoss.esri.com/geoportal/webhelp/en/geoportal_931/index.htm#widgets_intro.htm
Layer Visibility Name is not showing the services name. posted by hmelendez on Nov 24, 2009 12:58 PM
I'm having the same problem as paulheinrich mention two post up. Using the sample application. In the Live Layer Widget on the Layer Visibility Setting I see names like: ArcGISDynamicMapServiceLayer107 ArcGISDynamicMapServiceLayer108 Instead of the names of the services in my sample application. http://mapas.gmtgis.net/CD_AEE/
Layer Visibility Name is not showing the services name. posted by hmelendez on Nov 24, 2009 1:28 PM
This is the tread to solve the Service Name problem in the Layer Visibility Settings. http://forums.esri.com/Thread.asp?c=158&f=2421&t=274404&mc=5#msgid847792
Livelayers not showing up properly posted by jmmoro00 on Dec 07, 2009 9:20 AM
It appears that after the last update the livelayers widget / livelayers are no longer working properly. I can see the data frame however none of the data is showing up. If I use the new "add service" component of the livelayer widget in the app, referencing the same map service & url pointed at in the config file, it works properly.
Response to Livelayers Widget Error posted by robinsonbruce on Dec 08, 2009 10:58 AM
In response to jmmoro00's post on 7 Dec re LiveLayers widget: the problem you're encountering is that the web app is receiving error 403.1, meaning the web app does not have permission to execute scripts. To resolve the issue in IIS v6.0, select the app in IIS, edit the Properties, and on the Virtual Directory tab, make sure the Execute Permissions box has "Scripts and Executables" selected. This will attribute script execution directly to the app. If using IIS v7.0, just make sure you set the app up as an “application” and not a “virtual directory.”
Downloading Previous Version? posted by kristelm on Dec 11, 2009 6:52 AM
Hi, Is there any way to download the previous version too?
Documentation for Sample Flex Viewer and Widgets? posted by dwwheelock on Dec 11, 2009 8:52 AM
The PDF documentation for the Sample Flex Viewer is merely a primer. Is there any other documentation for SFV functions, such as WidgetEffects, that might explain their functionality in detail or must we just guess and and rely on the kindness of folks on this forum? Is there a reference list somewhere of the new, unique functions that are built into the SFV and their capabilities? I created a new thread for this here: http://forums.esri.com/Thread.asp?c=158&f=2421&t=296982
wms.swc posted by jleprowse on Dec 11, 2009 10:30 AM
When I build this project I get an error unable to open "\wms\bin-debug\wms.swc", can you tell me how to fix this?
Sort by Date Updated posted by cschielein on Dec 11, 2009 10:31 AM
Would be great if the code gallery could be sorted by "Date Updated" (needs to be in a seperate column on the Code Gallery screen) so one could find updates as well as what is new
WMS.SWC missing for me, too. posted by dwwheelock on Dec 11, 2009 12:16 PM
I've been using the June version of the Sample Flex Viewer for about a month. Today I discovered the new version from last week and tried to test it. I, too, get the error of the missing wms.swc file. If I try to run with the errors, I get 404 Page not found. Also, when I import it, it imports as a project named ESACore, instead of FlexViewer. I am still able to import the June version as a new project and run it with no problem. Looks like a problem with the new version.
Older version posted by jleprowse on Dec 11, 2009 1:15 PM
Anywhere I can download the older version? Can you email me? jleprowsewet-llc.com
wms.swc posted by jjpizarro on Dec 14, 2009 5:02 AM
In response to jleprowse on Dec 11, the problem is the project configuration on flex builder. On flex builder path configuration go to Library path and remove all invalid library reference
Need a better 'whatsnew' file posted by subu on Dec 14, 2009 2:43 PM
Dear Sample Viewer Team, All ESRI Flex users would appreciate having a better whatsnew file to download with the sample viewer. The current file is confusing to say the least and does not clearly state why it might be necessary or advantageous to upgrade to this version. We like your work but we just need better documentation so that we can decide when and how to upgrade to your latest viewer update. Thanks in advance.
unable to open "\wms\bin-debug\wms.swc" posted by kdiabate64 on Dec 14, 2009 8:02 PM
I have downloaded the new version of the sample viewer and I am getting the same error. How do you fix this again?? I was unable to remove the wms refer from the path directory. How do we this this again?? Thanks.
unable to open "\wms\bin-debug\wms.swc" posted by lowell.6 on Dec 16, 2009 6:33 AM
I am also, receiving this error. I have played with the lib source files with no success. Please help. It seems to me that this application has very widespread use (for good reason), I'd like to see better support and or training options from ESRI.
response: unable to open "\wms\bin-debug\wms.swc" posted by jjpizarro on Dec 16, 2009 11:26 AM
the problem is that file not exist, it is in /lib folder, so you need to remove this reference from flex builder path in your flex builder project, following this: - rigth click on your project - click on properties - Flex Build Path - on rigth panel click on library path - remove invalid library reference (\wms\bin-debug\wms.swc)
response: unable to open "\wms\bin-debug\wms.swc" posted by jjpizarro on Dec 16, 2009 11:29 AM
the problem is that file not exist, it is in /lib folder, so you need to remove this reference from flex builder path in your flex builder project, following this: - right click on your project - click on properties - Flex Build Path - on right panel click on library path - remove invalid library reference (\wms\bin-debug\wms.swc)
Here is how to get it working. posted by rscheitlin on Dec 16, 2009 1:09 PM
All, look at this thread if you want to know the specific steps to get this latest version working for you. http://forums.esri.com/Thread.asp?c=158&f=2421&t=297291&mc=3 Robert Scheitlin
Revised version of SFV posted by robinsonbruce on Dec 17, 2009 11:20 AM
All, We've posted a revised version of the SFV that addresses the invalid library reference (\wms\bin-debug\wms.swc). We're also working on a User Guide/Help file (html) that we will roll up into the next zip, that you'll be able to point your "Help" link to via hyperlink. I pointed the Help link in the "View it Live" link (see above) to our previous help file, so you get an idea of where we're going. Hope this helps! - Bruce Robinson, ESRI Situational Awareness Team
Missing flexviewerlib.swc... or is it only me posted by OliverTwist on Dec 22, 2009 2:10 AM
I have downloaded and built the Flex Viewer application which works fine (but I am not clear how when the index.mxml is empty!) In the PDF documentation for the viewer (page 25) it mentions a separate flexviewerlib.swc that you can use to develop widgets outside the sample flex viewer project - but for the life of me I can't find any sign of it in the zip.
livemaps posted by alexritchie on Dec 23, 2009 12:33 PM
compiled the source code and all seems to be well when running the page off the local drive, except the live layers don't appear??? nor did any other map service that I point to in a testing situation.
cant see my map services posted by simon.miles.rbwm on Dec 24, 2009 2:27 AM
I cant seem to see my mapservices when I've add them into the config.xml. I know that they work as i've created basic flex builder maps applications previous to exploring the Sample Viewer and I can see them. Where am I going wrong?
Developer's Guide?? posted by kirk11 on Dec 25, 2009 8:43 AM
Is this the "README.txt" or is there a PDF that I cannot seem to locate? Cheers, K.
Cant view map services posted by wiseguy on Dec 27, 2009 5:57 AM
I can't view my map services either. The default arcgisonline services work well. Sample Viewer 1.2 works with my map services. So I am not the only one facing this issue. Is there a bug in the code?
can't seem to find the Developer's Guide in latest version (updated 16 Dec 2009) posted by csingeu on Dec 28, 2009 2:09 AM
Hi, Can someone kindly point me to where I can locate the Developer's Guide in the latest zip file updated on 16 Dec 2009? I can't seem to find any PDF file. Thanks.
Live Map Issue and Bookmark bug posted by scc on Dec 30, 2009 12:18 PM
Hi there. There are some issues with users unable to view live maps. This can be fixed by upgrading to the Flex SDK version 3.4.1. Please see the following forum link for more information: http://forums.esri.com/Thread.asp?c=158&f=2421&t=297811 There is also a bug with the bookmark widget. This fix can also be found at the bottom of the above link. Thanks to Robert Scheitlin for posting this solution.
config.xml question posted by riptele on Jan 04, 2010 1:39 PM
In the latest version of flexviewer, the config.xml file for the live maps widget entry points to flexviewer/widgets/LiveMaps.xml for the config file and esa/widgets/LiveMaps.swf for the compiled swf. Is this the way it is supposed to be? I also noticed the widget ChartWidget is using the esa/widgets/ChartWidget and not the flexviewer/widgets/ChartWidget. Why are there two versions of these widgets?
livemaps issue continued posted by alexritchie on Jan 05, 2010 11:09 AM
I did the suggested upgrade of the Flex SDK to version 3.4.1 as was noted as the fix for the livemaps not working to no avail. Has anyone got live maps working with the current flexviewer. It's not even working in the compiled downloaded version. I think that there is some issue somewhere in the code...please please help!
found it! posted by alexritchie on Jan 05, 2010 11:19 AM
to my previous comment. I just found this thread in the forum which describes the fix. http://forums.esri.com/Thread.asp?c=158&f=2421&t=297777 Anyone that is having trouble getting the live maps going. They will need to comment out live 147 in MapManager.mxml.
Flex developer's guide posted by vijayashree on Jan 08, 2010 6:39 PM
I can't find this developer guide for the beginners for arcgis flex. Can you please help me with that? Great work SVT. Thanks v
Need older version of the Sample Flex Viewer posted by shaunaraebrown on Jan 08, 2010 10:37 PM
We are still using ArcGIS Server 9.3, and I'm just getting started with the Sample Flex Viewer. Recently, I accidentlly deleted my old zip file of version 1.0 and everything that I unzipped. I'm guessing that I need the older version of the SFV, since our server is running AGS 9.3. If ANYONE has the original Sample Flex Viewer (I downloaded the zip file in September 2009), please repost it in the Code Gallery or e-mail me at shaunarae.brown@gmail.com. I can't be the only one with this problem. Thanks a bunch :-)
Sort by Date Updated please posted by omargaafar on Jan 11, 2010 4:29 AM
Would be great if the code gallery could be sorted by "Date Updated" (needs to be in a seperate column on the Code Gallery screen) so one could find updates as well as what is new.
Query Builder errors. posted by jbanning on Jan 11, 2010 10:44 AM
After downloading the sample, I have been trying to execute a query using the query builder widget, but continually get the following error "TypeError: Error #2007: Parameter blendMode must be non-null." Has anyone seen this before?
Very useful posted by stepanoff on Jan 13, 2010 6:12 AM
The SFV has been the most helpful free sample/template from ESRI in our organisation. By far actually. Many thanks and I hope you keep both the SFV and the FLEX-framework for AGS updated. Flex team; Great work! Karl M Växjö kommun / Sweden
Bing basemaps in the Sample Flex Viewer 1.0 Problem posted by tbrophy on Jan 14, 2010 7:09 AM
I can not get Bing basemaps to show in the Sample Flex Viewer 1.0 I have successful viewed Bing basemaps in the Sample Flex Viewer 1.3 (SFV1.3) using the sample code - no problem. So I know it works with my ArcGIS Sever 9.3.1 (.NET), IIS and the vetoken.ashx are configured properly. I have modified the config.xml in the SFV1.0 (below) that reflect in the config.xml in the SFV1.3. I have a Sample Flex Viewer 1.0 (SFV1.0) that I would like to keep due to it's customization. (I am using "arcgis_api_for_flex_1_3" and "SDK 3.4.1 for both). I have modified the config.xml & MapManager.mxml in the SFV1.0 (below) that reflect the config.xml & MapManager.mxml in the SFV1.3. I have gotten rid of all widgets and livemaps to keep thing simple.. I don't get any errors in Flex Builder. If I use the default basemap layers - everything runs fine. I've been working on this for a few days now. Has anyone successful viewed Bing basemaps in the Sample Flex Viewer 1.0? What am I missing?
Bing basemaps Answered posted by tbrophy on Jan 14, 2010 2:10 PM
Answer found on this forum: http://forums.esri.com/Thread.asp?c=158&f=2421&t=298721&mc=1
Can I download ArcGis Api version 1.2 somewhere posted by reginaldc on Jan 18, 2010 6:19 AM
As the flexviewer I am using was build with the ArcGis Api I would like to download the sourcecode of that version. Does anyone know where I can find this code? My email address is reginald.carlier@ingelmunster.be
Query Builder Widget Operation? posted by jmmoro00 on Jan 27, 2010 11:05 AM
When using the query builder widget, is the widget supposed to actually build a query string box? Using the live demo fo the flex builder I am able to choose a map service, dynamically view the fields and possible query choices etc. however when I double click, drag, any other options I could think of for building the query string nothing appears. I am able to type in a query manually however, for instance I can manually type -- OBJECTID = 1 -- but by choosing a map service, selecting the OBJECTID attribute, choosing an operator, and choosing a potential value I get nothing in the query string box. Am I doing something wrong?
Bookmark Widget posted by treeninja on Jan 29, 2010 11:41 AM
I've developed an application using the SFV and have taken advantage of the Bookmark widget. I have a layer of walking trails sorted by alphabetical order, but, the widget wants to return them in OBJECTID order. Is there a way to fix this. I'm not a programmer. Thanks
WidgetManager.mxml posted by greghawk on Feb 04, 2010 9:00 AM
What is WidgetManager.mxml for? It is a component in the viewer but I don't see it used anywhere. I even renamed it and everything is well. It seems like the docked version is used. Is this an alternate component to use or what?
If you would like to post a comment, please login.