Quantcast
Channel: Forums - ArcGIS Viewer for Flex
Viewing all 2097 articles
Browse latest View live

Adding Rasters to Dynamic Legend or ESRI Legend

$
0
0
Hello,

I am trying to bring in some raster symbology data into my legend, however the information does not show up.

I am using ArcGIS 10.1 for server and desktop with Viewer for Flex 3.1.

The raster data is being consumed via an image service.

How can I show a representation of the raster symbology within my legend?

Thanks

Swipe/Spotlight Widget 3.1 not populating drop down list - 'ioError'

$
0
0
I am trying to use the Swipe/Spotlight widget for Flex 3.1 compiled, however I am getting the following error:
[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]

http response status: 404

Fault code: Server.Error.Request

Fault info: HTTP request error

Fault details: Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://rd.giscenter.isu.edu/flexview...htWidget_1.xml
I am using ArcGIS 10.1 for both Desktop and Server plus Viewer for Flex 3.1.

My map has both image and dynamic type services for operational layers with no sublayers at this time.

Thanks for any assistance,

Haskett

Link widget

$
0
0
Has anyone figured out how to move the location of the Link widget popup? I've move the widget container down, but the popup remains in the same location.

-Bob

Selected Operational Layers Update or Refresh

$
0
0
Within the ArcGIS Viewer for Flex, when adding new layers to an existing map, the existing layer order gets jumbled. I'm not sure how to add a new layer in the middle of all the other layers without deleting all the layers and then re-adding them to the map service.

Has anyone figured out a way to add a new layer in the middle of an existing map service without getting the layer order messed up? Is there a refresh or update?

Thanks

Identify Widget 3.1, using Links

$
0
0
I began a discussion briefly with Robert on his widget page regarding the use of the links tag in his identify widget. As I've explained, I'm having issues getting special characters to pass through the widget.

I have a link prefix that contains some special characters, and thus, needs to be encoded. I am using the html encoding format for example %7B for a {. The widget (or Flex) is automatically encoding the %, and my resulting url is passed as %257B. Obviously, the browser doesn't know what that is and the URL doesn't work. Any tips for html encoding within flex and your widget? Specifically encoding { and }?

I've also tried using { for { and } for }, however, it isn't working correctly. Below is an example of how I have the links tags configured in the widget:

<linkprefix>http://servername/results.aspx?searchtype=Advanced&Infrastructure_Drawings=&#123;ID_Drawing_No = </linkprefix>
<linksuffix>&#125;</linksuffix>

URL Returned:
http://servername/results.aspx?searchtype=Advanced&Infrastructure_Drawings=&#123;ID_Drawing_No =13318}

It is working in the suffix, but it not in the prefix. Any help would be appreciated.

Thanks,
Kelly

PrintWidget Format & Layout_Teplates dropdownlist

$
0
0
Can you only have two choices for Formats on the dropdown list instead of 8 choices? Samething for Layout templates as well.

etime widget

$
0
0
I tried Robert's etime widget which is a great idea, however, it seems it still time-slides on all visible layers. In the widget xml file I specify each time slide layer, and all layers are defined in the main config file...
Here is an example of the widget xml:

<autotogglelayervisibility>true</autotogglelayervisibility>
<startatoldesttime>true</startatoldesttime>
<resetslideronlayerchange>true</resetslideronlayerchange>
<layers>
<layer label="Bears" name="Bears">
<dateformat>YYYY, MMMM</dateformat>
<loop>false</loop>
<singlethumbastimeinstant>true</singlethumbastimeinstant>
<thumbcount>1</thumbcount>
<thumbmovingrate>350</thumbmovingrate>
<timeextent setfromlayer="Bears"/>
</layer>
<layer label="Bobcats" name="Bobcats">
<dateformat>MMMM,DD YYYY</dateformat>
<loop>false</loop>
<singlethumbastimeinstant>true</singlethumbastimeinstant>
<thumbcount>1</thumbcount>
<thumbmovingrate>350</thumbmovingrate>
<timeextent setfromlayer="Bobcats"/>
</layer>
....................
...................
suggestions? Thank you.

FLEX 4.6 could not find resource bundle 'components' for locale 'en_US'

$
0
0
I've seen this issue on some of the Flex forums at Adobe and Esri, but have not been able to reach a solution.

I started with custom written widgets designed to work in ArcGIS 1.x API for Flex and have migrated them to work on the ArcGIS 3.1 API for Flex. There is one main widget, a modified query widget (which queries a map service for specific feature types) and 2 others that serve as popups, makings graphs from SQL data returned as an xml document, facilitated by a web service. I know it might be a bit verbose, but I am trying to paint a clear picture of what I have done so far.

I have successfully gotten the widgets to work in the FlashBuilder 4.6 environment using the out-of-the-box ArcGIS API for Flex 3.1 , but my goal is to take the widgets from that environment into an existing flexviewer website, which was modified by another user using Application Builder. (A big thanks to the article by Robert Scheitlin, Bjorn Svensson, and Derek Law. Just seeing it work in my development environment made my weekend a couple of weekends ago.)


I've added the SWF's to a subfolder in our staging website (a copy of our live website) and set up the config.xml and widget config xml appropriately. The primary query widget displays, but will not display the query results. I get an error message with the following error:

Error: Could not find compiled resource bundle 'components' for locale 'en_US'.
at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()
at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()
at mx.core::FlexModuleFactory/installCompiledResourceBundles()
at mx.core::FlexModuleFactory/docFrameHandler()
at mx.core::FlexModuleFactory/docFrameListener()

There are a host of other errors, but I assume that they are results of asynchronous function calls continuing after the first is stymied.

I have used a variety of compiler options from the standard choices and checkboxes. for example, I am using the default Flex SDK (4.6 for my version), the minimum version of Flash Player required by the Flex SDK. I have all of the compiler options checked (Flash Text Engine in MX components, copy non-embedded files to output folder, etc...)

I am compiling with the following additional compiler arguments:
-locale en_US -source-path=locale/{locale} -keep-all-type-selectors=true
-resource-bundle-list=c:\bundles.txt^ (just to get a list of resource bundles to include)
-include-resource-bundles=ESRIMessages,SharedResources,charts,collections,components,containers,controls,core,effects,formatters,layout,logging,messaging,osmf,rpc,skins,sparkEffects,styles,textLayout,utils,validators

If anyone can help, I would greatly appreciate it.

Thank you

Bug : getAllLoadedWidgetIds function

$
0
0
I have noticed that the getAllLoadedWidgetIds returns Ids of even closed widgets. Anyone knows how to fix this bug and get only the truly opened widget lists?

Identify Widget 3.1

$
0
0
Hi I just added this widget to my Flex - application builder site, and when I click on the icon nothing comes up. Not even an error message. Im sure this is simple, but what could I be missing? Any help would be appreciated. Thanks.

Operational Layer not displaying

$
0
0
I've got a dynamic layer in my FV that is behaving curiously. It appears in the Layers List widget but won't actually display. I have confidence in the map service itself as that loads fine in ArcMap and the REST endpoint is visible. I've been over my config.xml but can't discern what's different about this layer than any others. I"m posting it here, in hopes that someone can spot what I suspect is an obvious error. I'm too close to deadline to afford any pride! Here are the relevant pieces:

Live site: https://maps.dmme.virginia.gov/flexviewer/DGO/

REST endpoint: http://websde/GeoServices/rest/servi...ched/MapServer

Config.xml:

Code:

<?xml version="1.0" ?>
<configuration>
    <title>Geology and Mineral Resources</title>
    <logo>assets/images/dmme40h.png</logo>
    <style>
        <colors>0xcee7f4,0x39628c,0x355d89,0x294867,0xcee7f4</colors>
        <alpha>0.8</alpha>
        <font name="Verdana"/>
        <titlefont name="Verdana"/>
        <subtitlefont name="Verdana"/>
    </style>
    <!-- replace the following url with your own geometryservice -->
    <geometryservice url="https://maps.dmme.virginia.gov/GeoServices/rest/services/Geometry/GeometryServer"/>
    <subtitle>A Division of Virginia DMME</subtitle>
    <bing key="Ak63iJgvIk2ExDcduecO_E3jI3tDStKtCoRtLZHOdHj_nmsnm6OyvAZ5fS90IQVh"/>
    <widget url="widgets/Navigation/NavigationWidget.swf" config="widgets/Navigation/NavigationWidget.xml" left="10" top="50"/>
    <widget url="widgets/OverviewMap/OverviewMapWidget.swf" config="widgets/OverviewMap/OverviewMapWidget.xml" right="0" bottom="0"/>
    <widget url="widgets/HeaderController/HeaderControllerWidget.swf" config="widgets/HeaderController/HeaderControllerWidget.xml" left="0" top="0"/>
    <widget url="widgets/Coordinate/CoordinateWidget.swf" config="widgets/Coordinate/CoordinateWidget.xml" label="Coordinate" icon="assets/images/i_globe.png" left="3" bottom="1"/>
    <widget url="widgets/MapSwitcher/MapSwitcherWidget.swf" config="widgets/MapSwitcher/MapSwitcherWidget.xml" label="Map Switcher" icon="assets/images/i_globe.png" right="20" top="55"/>

        <widget url="widgets/Splash/SplashWidget.swf" config="widgets/Splash/SplashWidget.xml" label="Splash" icon="assets/images/i_globe.png"/>
        <map attributionvisible="true" esrilogovisible="true" openhandcursorvisible="false" scalebarvisible="true" scalebar="default" zoomslidervisible="false" wraparound180="false" addarcgisbasemaps="true" initialextent="-9355402.291706543 4294366.250578298 -8319527.6843861155 4881402.627808294" top="40" portalurl="https://www.arcgis.com">
        <basemaps>
            <layer type="tiled" label="Terrain with Labels" icon="https://www.arcgis.com/sharing/rest/content/items/aab054ab883c4a4094c72e949566ad40/info/thumbnail/tempTerrain_with_labels_ne_usa.png" url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Terrain_Base/MapServer" visible="true"/>
            <layer type="tiled" label="Terrain with Labels" url="http://services.arcgisonline.com/ArcGIS/rest/services/Reference/World_Reference_Overlay/MapServer" visible="true" reference="true"/>
            <layer type="dynamic" label="Virginia Counties" icon="assets/images/virginia_counties.jpg" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/VGIN_BaseMapCounty/MapServer" visible="false"/>
        </basemaps>
        <operationallayers>
            <layer type="dynamic" label="Boundaries" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/Boundaries2/MapServer" visible="false"/>
            <layer type="dynamic" label="Karst Features" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/Geology_Resources/VAKarstFeatures/MapServer" visible="false"/>
            <layer type="dynamic" label="Water Wells" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/Geology_Resources/VirginiaWaterWells_WMS/MapServer" visible="false">
                <sublayer id="2" popupconfig="popups/PopUp_2.xml"/>
            </layer>
            <layer type="dynamic" label="DGMR Publication Index" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/DGMR-Publication_Index/MapServer" visible="false">
                <sublayer id="0" popupconfig="popups/PopUp_9.xml"/>
                <sublayer id="1" popupconfig="popups/PopUp_10.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_11.xml"/>
            </layer>
            <layer type="dynamic" label="Geology uncached" imageformat= "png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/FlexServices/Geology_uncached/MapServer" visible="true"/>
                        <layer type="dynamic" label="Geology" alpha="0.5" imageformat="png8" url="https://maps.dmme.virginia.gov/GeoServices/rest/services/Geology_Resources/Geology_WMS/MapServer" visible="true">
                <sublayer id="0" popupconfig="popups/PopUp_3.xml"/>
                <sublayer id="1" popupconfig="popups/PopUp_4.xml"/>
                <sublayer id="2" popupconfig="popups/PopUp_5.xml"/>
                <sublayer id="3" popupconfig="popups/PopUp_6.xml"/>
                <sublayer id="4" popupconfig="popups/PopUp_7.xml"/>
                <sublayer id="5" popupconfig="popups/PopUp_8.xml"/>
            </layer>
        </operationallayers>
    </map>
    <widgetcontainer layout="float">
        <widget url="widgets/Bookmark/BookmarkWidget.swf" config="widgets/Bookmark/BookmarkWidget_1.xml" label="Bookmark" icon="assets/images/i_bookmark.png"/>
        <widget url="widgets/Draw/DrawWidget.swf" config="widgets/Draw/DrawWidget.xml" label="Distance and Area Measure" icon="assets/images/i_draw2.png"/>
        <widget url="widgets/Print/PrintWidget.swf" config="widgets/Print/PrintWidget.xml" label="Print" icon="assets/images/i_print.png"/>
        <widget url="widgets/LayerList/LayerListWidget.swf" config="widgets/LayerList/LayerListWidget_1.xml" label="Layer List" icon="assets/images/i_layers.png"left="500" top="50" preload="closed"/>
                <widget url="widgets/Legend/LegendWidget.swf" config="widgets/Legend/LegendWidget_2.xml" label="Legend" icon="assets/images/Legend32.png"left="150" top="50" preload="closed"/>
    </widgetcontainer>
</configuration>

Widget scrollbar styles

$
0
0
Hi,

In default.css I saw there are selectors for changing the scrollbar style of both mx and spark controls.
This not only applies to FlexViewer but also all custom widgets that are added to the FlexViewer project.

But what if I design a new custom widget and I don't want the s|VScrollBar, mx|VScrollBar, s|HScrollBar and mx|ScrollBar selectors to apply to my widget. I want to use default looking scrollbars AND I can't change anything in default.css.

For spark controls a workaround is having another CSS file for this widget and re-apply the default skin on it, using something like this:

Code:

s|VScrollBar
{
  skinClass: ClassReference("spark.skins.spark.VScrollBarSkin");
}

But I'm not sure this is the best strategy, and I have no workaround for mx controls.

Any idea?

Thanks

Excel Widget and State Plane Coordinates

$
0
0
Is it possible for the Excel Widget to work with state plane coordinates instead of in lat long format?

Can this be easily configured with the xml file?

FV 3.1, https and secured services

$
0
0
Hi all,

I need to restrict the access to an application based in FV 3.1 to only autenthicated users. I've developed in Php the authentication process in a Postgres database and using https. My idea is (perhaps wrongly), once the user has been autenthicated, redirect to FV3.1 app. The problem is that it appears again a popup window (see attach Attachment 21709), because it's offering a secure service (based in token), but if I redirect to this application using 'http' instead of 'https' protocol, it works fine because it doesn't appear that second window to login. Any idea why happen that?

Thanks.
Attached Thumbnails
Click image for larger version

Name:	login.png‎
Views:	N/A
Size:	122.4 KB
ID:	21709  

Viewer 3.1 Edit Widget Problem with updating attributes

$
0
0
I recently upgraded to AGS Viewer for Flex 3.1 and am experiencing some issues with the Edit widget. I have a point feature service and the users are allowed to enter new features and/or modify the attributes of existing features. Adding & deleting features works smoothly, however, when they attempt to modify one or more attributes, the changes never get committed to the database. The "spinner" at the bottom of the widget spins, but no changes ever get saved. I have Server 10.1 (Linux), Desktop 10.1 and ArcSDE 10.0. All have the most recent service packs installed, also. I recreated the Feature Service from scratch and recreated the underlying map layer. Editing from Desktop 10.1 works fine and there are no delays.
I have opened a support case with tech support and am still waiting for some sort of a resolution, and I thought I would look here for other suggestions or answers.

I neglected to add earlier (just checked)... I see the same problem with altering the attributes of a polygon feature class as well. Adding and deleting polygons work, but the app never commits attribute changes.

thanks.

eSearch data grid question

$
0
0
Here is the situation I have for one of my Viewer's. I have the eSearch widget acting as two separate tools; each controlling a separate operational layer. I realize I can have all layers in one widget, but have set it up this way for reasons that I won't try to explain on this post. What I am trying to accomplish is that once a search is performed a fixed data grid will appear for just one of the widgets. ie: if a search is performed using eSearch widget A, the results will appear in a fixed data grid. If a search is performed in eSearch widget B, no data grid will appear.

I have tried setting <autoopendatagrid/> to false and have also added datagrid to <disablebuttons> for eSearch widget B, but when a do a search the datagrid still appears. Is this possible to do? Any help on this would be greatly appreciated.

Thanks,

Matt

Editor Widget and Clustering

$
0
0
I have run into an issue with the clustering function for a feature layer in Flex Viewer 3.1. I would like to cluster the feature layer and still be able to edit, but if several features are clustered, the edit tool is unable to select them and display the popup to allow attribute editing. This is a problem for features that have overlapping geometry, since you can't zoom in beyond their cluster scale.

Is this an expected behavior of clustering? Does anyone know a way around this?

Thanks for any suggestions!

Description in TOC Widget

$
0
0
The "Description" link does not appear in the TOC Widget window if the service is a secure service. Also it does not appear if the service is public, but is a type "feature" for a map service (as is needed for using pop-ups). I am using 10.1/3.1 with the 3.1.5 TOC widget version. I am wondering since the description applied at publishing is for the map/feature service and the individual features don't have a description is the problem. Any ideas?

Using the Export Map Widget within a Widget Container

$
0
0
Rob,

Looking back through the readme file I noticed that you stated that the export widget should be placed with the UI elements instead of within a widget container.

Why do you suggest doing so?

I would like to the link to the Export Map widget to be located in a widgetgroup within my widget container with the ablity to click onto it and get the popup export wizard without having to click on the new globe icon.

Is it possible to by pass the globe icon with the compiled version?

I placed it with my UI elements, however I would like to have all my widgets people interact with in one container.

Thanks,

Haskett

(I took your suggestion and moved this to a new thread.)

Error#1069 Locate Coordinate Widget

$
0
0
I have been reworking the locate coordinate Widget to address a situation where a User input a Lat/long(DMS) (wkid=4326) and I have to locate them on a NAD83 (wkid=2653) basemap , so I tried to run the following code to execute that but I have been getting "Error#1069" on the Results view of the widget. Can you please tell me what am I doing wrong here is my code:

Code:

private function locateCoordinates():void
            {
                originatingLocateState = currentState;

                // refresh before each request
                hideInfoWindow();
                graphicsLayer.clear();
                if (locateResultAC)
                {
                    locateResultAC.removeAll();
                }

                try
                {
                                        var vals:Array;
                                        var long:String=txtLong.text;
                                        var lat:String= txtLat.text;
                                        vals=long.split(" ");
                                        long=(Number(vals[0]) + Number(vals[1]) / 60 + Number(vals[2]) / 3600).toString();
                                        vals=lat.split(" ");
                                        lat=(Number(vals[0]) - Number(vals[1]) / 60 - Number(vals[2]) / 3600).toString();
                                       
                    if (long && lat)
                    {
                        showStateResults();

                        var locateResult:LocateResult = new LocateResult();
                        locateResult.symbol = resultSymbol;
                        locateResult.title = coordinatesLabel;
                        locateResult.content = long + " " + lat;
                                                locateResult.link = "";
                                                locateResult.selected = true;
                        locateResult.point = new MapPoint(Number(long), Number(lat),new SpatialReference(4326));
                                                var gra:Graphic= new Graphic(locateResult.point);
                                                geometryService.project([gra],map.spatialReference);
                                               
                                               
                                           
                      }
                }
                catch (error:Error)
                {
                    showMessage(error.message, false);
                }
            }

Code:

private function projectCompleteHandler(event:GeometryServiceEvent):void
                        {
                                hideInfoWindow();
                                graphicsLayer.clear();
                                //WidgetEffects.flipWidget(this, viewStack, "selectedIndex", 2, 400);
                                try
                                {
                                        var long:String = txtLong.text;
                                        var lat:String = txtLat.text;
                                       
                                        var point:MapPoint = (event.result as Array)[0] as MapPoint;
                                        var icon:String = widgetIcon;
                                        var title:String = coordinatesLabel; 
                                        var content:String = long.toString() + ", " + lat.toString();
                                        var link:String = "";
                                        var infoData:Object =
                                                {
                                                        icon: icon,
                                                        title: title,
                                                        content: content,
                                                        link: link,
                                                        point: point,
                                                        geometry: point
                                                };
                                       
                                        //showLocation(infoData);
                                        //showMessage(locationsLabel, false);
                                       
                                        locateResultAC = new ArrayCollection([ infoData ]);
                                        addSharedData(widgetTitle, locateResultAC);
                                        showLocation(infoData);
                                        showMessage(locationsLabel + " " + locateResultAC.length, false);
                                       
                                }
                                catch (error:Error)
                                {
                                        showMessage(error.message, false);
                                }
                        }

Code:

<esri:GeometryService    id="geometryService"
                            url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"
                            projectComplete="projectCompleteHandler(event)"/>

Viewing all 2097 articles
Browse latest View live