|
POST
|
Simon, You do need to compile it your self. I have always had bad experiences distributing compiled swfs in the past.
... View more
08-02-2010
05:11 AM
|
0
|
0
|
3038
|
|
POST
|
Matt, The CSS files are under src/default package folder in the package explorer tree in flash builder.
... View more
08-02-2010
04:03 AM
|
0
|
0
|
2160
|
|
POST
|
Harold, I forgot to explain the url method. for your development machine: 1. Open the FlexViewers Project properties (right click FlexViewer in the package explorer window and choose properties). 2. Switch to the Rub/Debug Settings page 3. Select the launch configuration in the window (mine is index (2)) and click the edit button 4. Down in the url or path to launch uncheck Use default and add your config parameter there. 5. Apply/Ok that dialog and you are good to go In your deployment machine you just add this to your url though the hyperlink to get to your site ?config=config.xml
... View more
08-02-2010
04:01 AM
|
0
|
0
|
1819
|
|
POST
|
Harold, In the current Beta there is no WMS map service support. To change config files there is two different ways, the quick and easy way and the url way. The quick and easy way is in the ViewerContainer.mxml change line 50 DEFAULT_WIDGET_CONTAINER_WIDGET:String = "x"; As far as where I found the attributes I followed the code and used Flex's autocomplete to determine property values.
... View more
08-01-2010
05:36 PM
|
0
|
0
|
1819
|
|
POST
|
Ian, I will attempt to cover the basics and pitfalls of adding map services to the viewer. Working with tiled (cached) map services, there are many things to consider. 1. All tiled map services have to be in the same projection (WKID) to function together. 2. All Tiled map services have to have the same EXACT cached LODs (Levels of display) so if you are using one of esri's basemaps that is in WKID 4326 like http://services.arcgisonline.com/ArcGIS/rest/services/ESRI_Imagery_World_2D/MapServer and you want to use a cached map service of your our with it, than it has to be in the same WKID (4326 aka: GCS_WGS_1984) and have the same tiled schema (LODs) The reason that they have to have the same WKID is that ArcGIS Server serves up tiles of the map image already produced at a certain scale and thus will not attempt to re-project the image to meet the maps WKID. A Dynamic map service on the other hand, the image is produced on demand and the data is re-projected to the maps WKID and then the image is produced for the requested extent and return to the client. The LODs having to be identical is due to the fact that once the first map service is added to the map, it sets the available LODs (levels of display) and if a request is made for a scale that is not in the LOD array then the map will use the closest match to that scale requested and show those tiles. What that means is if your map is cached at different LODs and it is not the first map service added to the map than it will never get displayed because it does not contain any tiles in the requested LOD. So on to the basics of adding a map service to your Flexviewer 2.0 site. Map services are added by add a mapservice element to the config.xml file that you are currently using for your site. You can have multiple config.xml files as demonstrated in the Flexviewer (i.e. config-all.xml, config.xml, config-classic, etc). The structure of the mapservice element is simple. label: the name that you want to give the mapservice. This appears in the TOC and is used a the layers ID when calling the layer in actionscript. type: This is where you specify the map service type (i.e. tiled, dynamic, feature, bing, image). If you do not specify one of these types or misspell one of them that you will be alerted with a message when you run your app. alpha: 1 being completely visible or opaque, .5 being 50% transparent, etc. url: This is the fully qualified url of the map service and will end with things like MapServer, FeatureServer. visible: pretty self explanatory. autoRefresh: interval at which the mapservice should be refreshed. Value expressed in seconds as this number is multiplied by 1000 for milliseconds. group: for the classic controller only. This specifies which menu the mapservice will appear in if it is a basemap. useamf: currently only used for type="feature" to specify if actionscript message format will be used to fast server client communication. token: For secure services mode: For type="feature" values are: MODE_ON_DEMAND - features are fetched from the server as they are needed. MODE_SNAPSHOT - features are fetched from the server based on DefinitionExpression and/or TimeDefinition. When either definition change, the layer updates itself by querying features back from the server. Once the features are fetched to the client, their "visibility" on the map is based on the time and spatial extents of the map. So for example, for a time animation, you can request all features from server, then adjust time extent on Map to only show some of them. MODE_SELECTION - only selected features are available on the client side. Usually used in combination with an underlying map service showing the features that can be selected. icon: For the classic controller only. The icon that will be used in the menu for this basemaplayer. visiblelayers: A comma delimited list of layer id number that will be visible for this layer (i.e. 0,3,5). style: Currently only applies to Bing maps. Values are "road", "aerial" or "aerialWithLabels". key: Currently only applies to Bing maps. See http://www.bingmapsportal.com culture: Currently only applies to Bing maps. Consult Microsoft documentation about the culture property, including a list of supported cultures. Hope this clears some things up for you.
... View more
08-01-2010
01:04 PM
|
0
|
0
|
1819
|
|
POST
|
Matt, They do not seem to have a crossdomain.xml file on their server. Flex is looking for http://gis.apfo.usda.gov/crossdomain.xml and can not find it. Adobe has a concept call security sandboxes and when you are developing on your dev machine you are in a local trusted sandbox and can see their map service with out the crossdomain.xml but when you deploy to your server you are no longer in the local sandbox and Flex requires the crossdomain.xml on their server. The other option beside contacting them and asking them to put a crossdomain.xml on thier server is to use the proxy server that comes with Flexviewer. Using a proxy allows you to connect with their map service without the crossdomain.xml More info on crossdomain here: http://help.arcgis.com/en/webapi/flex/help/content/deploy_application.htm More info in using a proxy here: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/ags_proxy.htm
... View more
08-01-2010
03:45 AM
|
0
|
0
|
1032
|
|
POST
|
Justin, The API team developed a great utility just for that. http://help.arcgis.com/en/webapps/flexviewer/help/extenthelper/flexviewer_extenthelper.html
... View more
07-30-2010
08:51 AM
|
0
|
0
|
542
|
|
POST
|
Darryl, No it's one or the other. If you have the findparceladdressfield set than it will only search the specific field for a match with the address entered. If you leave the findparceladdressfield blank than it should use ESRI's locator service to try to match the address.
... View more
07-29-2010
01:22 PM
|
0
|
0
|
2772
|
|
POST
|
All, I am happy to announce the first community developed (and shared on the code gallery) widget for the Flexviewer 2.0. I have finalized my Dynamic Legend Widget for the 2.0 FlexViewer and shared it for all to use. This version is COMPLETELY dependent on 2 things ArcGIS Server 10 map services Flex Viewer 2.0 and obviously Flex API 2.0 I have made it XML configurable this time so that you can specify that certain map services or certain layers in a map service are not to be displayed in the widget. It is called dynamic because the legend will only draw map services and layer that are visible in your map. It respects scale dependency of layers and if the layer is checked in the TOC or operational layer TOC. The legend automatically redraws when layers have been checked/unchecked and when zooming in or out and a layer scale dependency has been meet. I hope you enjoy it and I HOPE that you read and understand that it will not work with mapservices that are not served from a ArcGIS 10 Server. http://www.arcgis.com/home/item.html?id=f60406b9f52340d59eb557bf64136af6 PS. don't forget to rate the code.
... View more
07-29-2010
01:18 PM
|
0
|
65
|
18560
|
|
POST
|
Darryl, If you don't what it to use the parcel data to search for the address then in the xml just leave findparceladdressfield blank.
... View more
07-29-2010
12:29 PM
|
0
|
0
|
2772
|
|
POST
|
Scott, I came up this the same thing as Sarthak. My fix was to change the OverviewMapComponent.mxml's bing case to the below. case "bing":
var veTiledLayer:VETiledLayer = new VETiledLayer();
veTiledLayer.id = label;
veTiledLayer.key = bingMapKey;
veTiledLayer.visible = visible;
veTiledLayer.alpha = alpha;
veTiledLayer.mapStyle = style || "aerial";
veTiledLayer.culture = culture || "en-US";
ovMap.addLayer(veTiledLayer);
break;
... View more
07-29-2010
09:20 AM
|
0
|
0
|
2051
|
|
POST
|
Nathan, I provided the source for the web service in the original thread and you would have to open that in VS. I created the source in VS2005 so I am not sure the changes that would have to be made (if any) for VS2008. If you try to open the website in VS I think that it is read only.
... View more
07-29-2010
08:49 AM
|
0
|
0
|
3231
|
|
POST
|
Dasa, Your Adobe Knowledge is unmatched... Thanks again.
... View more
07-29-2010
08:29 AM
|
0
|
0
|
1040
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-14-2020 11:36 AM | |
| 17 | 05-17-2021 01:51 PM | |
| 1 | 07-06-2020 05:32 AM | |
| 1 | 07-10-2018 05:49 AM | |
| 9 | 01-28-2022 10:58 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-08-2026
06:27 AM
|