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

Token Authentication - Flex Viewer 2.4

$
0
0
I am having trouble getting a secure service to work correctly.

I have a secured map service (added it to the Authenticated Users group in AGS 10.0 Server Manager) and generated a token. I can know navigate to it here:

--http://gis.mstn.govt.nz/ArcGIS/rest/services/Test/MapServer?token=jg7PRrPINRwItQRFtCLKEeNTvJBKbcjhPaGFZnufNqw7QFbN-N_Ou_JkoN1UJvIn--

Which seems all good, however when I try add this into my Flex application I get this error:
Attachment 21382

My config is setup like this:
<layer label="Test" type="dynamic" visible="false" alpha="0.7" token="jg7PRrPINRwItQRFtCLKEeNTvJBKbcjhPaGFZnufNqw7QFbN-N_Ou_JkoN1UJvIn"
url="http://gis.mstn.govt.nz/ArcGIS/rest/services/Cadastral/Test/MapServer" />

Where am I going wrong here?
Attached Thumbnails
Click image for larger version

Name:	error.PNG‎
Views:	N/A
Size:	85.4 KB
ID:	21382  

error to load dynamic service sample flex viewer 3.1

$
0
0
Hi,

I want to use Sample Flex Viwer 3.1 but I have a error ...

In my config.xml, I have :

Code:

<map wraparound180="true" initialextent="287902 6740112 396133 6852402" fullextent="287902 6740112 396133 6852402" top="0" esrilogovisible="false" addarcgisbasemaps="false">
        <basemaps>
                          <layer label="Scan IGN" type="tiled" visible="true" url="http://other/arcgis/rest/services/SCAN/MapServer" />
                          <layer label="Fond départemental" type="tiled" visible="false" url="http://other/arcgis/rest/services/FondDepartemental/MapServer" />
          </basemaps>
     
        <operationallayers>
                <layer label="Territoire Départemental" type="dynamic" visible="true" url="http://ags101:6080/arcgis/rest/services/TERRITOIRE_DEPARTEMENTAL/MapServer"/>
                        <layer label="Esquisse" type="feature" visible="true" url="http://ags101:6080/arcgis/rest/services/ALERTE_VOIRIE_ESQUISSE/FeatureServer/0"/>
                <layer label="En attente" type="feature" visible="true" url="http://ags101:6080/arcgis/rest/services/ALERTE_VOIRIE_ATTENTE/FeatureServer/0"/>
                <layer label="En cours" type="feature" visible="true" url="http://ags101:6080/arcgis/rest/services/ALERTE_VOIRIE_EN_COURS/FeatureServer/0"/>
                <layer label="Clôturée" type="feature" visible="true" url="http://ags101:6080/arcgis/rest/services/ALERTE_VOIRIE_TRAITEE/FeatureServer/0"/>
                </operationallayers>
       
    </map>

I have this error :

Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
Code:

at com.esri.ags.layers::ArcGISDynamicMapServiceLayer/loadMapImage()[C:\checkout\flex_api3\api\src\com\esri\ags\layers\ArcGISDynamicMapServiceLayer.as:1197]
        at com.esri.ags.layers::DynamicMapServiceLayer/updateLayer()[C:\checkout\flex_api3\api\src\com\esri\ags\layers\DynamicMapServiceLayer.as:183]
        at com.esri.ags.layers::Layer/updateLayerIfInvalid()[C:\checkout\flex_api3\api\src\com\esri\ags\layers\Layer.as:629]
        at com.esri.ags.layers::Layer/updateDisplayList()[C:\checkout\flex_api3\api\src\com\esri\ags\layers\Layer.as:555]
        at mx.core::UIComponent/validateDisplayList()
        at mx.managers::LayoutManager/validateDisplayList()
        at mx.managers::LayoutManager/doPhasedInstantiation()
        at mx.managers::LayoutManager/doPhasedInstantiationCallback()


what's the problem ?

The version 3.1 is it good ?

Thanks

override visibleLayers on ArcGISDynamicMapServiceLayer version 3.1

$
0
0
Hi,
I have a class that extends ArcGISDynamicMapServiceLayer (widget finddata geoportal)

Code:

public class GeoProcessingViewerLayer extends ArcGISDynamicMapServiceLayer

but I get an error flex on override function


1023: Incompatible override.

Code:

/**
        * Sets the visible layers
        *
        * @arr Array of visible layers, just contains their ids
        * */
        override public function set visibleLayers(arr:ArrayCollection):void {
         
          this._visibleLayers = arr;
          if(arr && arr.length > 0) {
                  var layerInfos:Array = layerInfos;
                  var showPoints:Boolean = false;
                  var showLines:Boolean = false;
                  var showPolygons:Boolean = false;
                  for(var i:Number = 0; i < arr.length; i++) {
                          var index:Number = arr[i];
                      var layerInfo:GeoProcessingViewerLayerInfo = layerInfos[index] ;
                      if(layerInfo.title == lblPoints) {
                              showPoints = true;
                      } else if (layerInfo.title == lblPolygons) {
                              showPolygons = true;
                      } else if (layerInfo.title == lblLines) {
                    showLines = true;
                }
                  }
                  geometryVisibility(showLines, showPoints, showPolygons);
          } else {
                  this._map.removeLayer(this.graphicsLayer);
          }
       
          this.refresh();
        }

what's the problem

Thanks

Showing the scale on ArcGIS for Flex

$
0
0
Does anybody know of a handy widget that shows what scale your map is at eg. 1:1,250 and ideally allows you to type in a scale and go to that scale? I would settle for just being able to see the scale as a starter. I'm just using the Application Builder version 3.0.
Thanks.

How to expand the tree item of the last item added to MapSwitcher?

$
0
0
I want the last map service name added to the TOC MapSwitcherWidget to expand after the map/layer is added.

I can get all of them to expand using this
this.toc.expandLayerItems();


But I have tried all kinds of code to get that last item added to open but nothing works. It seems like one of these should work but it does not.
toc.expandChildrenOf(toc.firstVisibleItem,true);
toc.expandItem(toc.firstVisibleItem,true);

Forgot to add tried this also
this.toc.openItems.push(toc.firstVisibleItem);


Any ideas?

Thanks.

Custom Query Widget

$
0
0
Hello All!

I'm would like to customize the Query Widget 3.1 to display the return results with three different icons instead of a single icon (fire.png police.png ems.png) according to the values on the queried field.

<query> Agency_Type = 'F' OR Agency_Type = 'P' OR Agency_Type = 'M'</query>

Any help, suggestions, directions would be greatly appreciated.

Attachment 21409
Attached Thumbnails
Click image for larger version

Name:	1.jpg‎
Views:	N/A
Size:	245.7 KB
ID:	21409  

Error in printing from the default print widget

$
0
0
I'm getting an error when I try to print from our 3.1 Flexviewer using the default print widget. It uses the Esri GP toolhttp://sampleserver6.arcgisonline.co...20Task/execute.

The error only happens when I turn layers on or off. Below is the error I receive:

Quote:

Error executing print task:

[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://sampleserver6.arcgisonline.com/ArcGIS/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute"]

Flex Viewer and Secure Services

$
0
0
I wonder if someone could help me understand how Flex Viewer and secure services work for ArcGIS and 10.0 and 10.1?

This is what I understand:

- ArcGIS Server 10.0 and Flex Viewer 2.x - I setup a secured service that authenticated users are only allowed to access. I add this layer into the config file with out a token, run the app and it comes up with an "unauthorized access" error in Flex Viewer

- ArcGIS Server 10.1 and Flex Viewer 3.x - I setup a secured service that authenticated users are only allowed to access. I add this layer into the config file with out a token, run the app and a login screen comes up and for each service that is secured.

This is with SQL server authentication, will it work the same with Windows authentication? Is there a way in ArcGIS Server 10.1 and Flex Viewer 2.x to config it so either a popup comes up or username/password is sent to the service, BUT not using a token?

eDraw / text background

$
0
0
Greetings,

I want to add a white background/halo to all text that is drawn (measurements and using "add text") inside the eDraw widget. Can someone please help me with this? I feel like it is probably easy if you know what you are doing, but I don't.

Any suggestions would be greatly appreciated. Thanks!

Jason

Hyperlink widget

$
0
0
is there such a thing as a widget I can put in the widget container that you can click to simply open and external file or website? I currently have my "help" as a static image widget, but if I want to place the widget icon with the other icons, the user has to click it to open the Help widget, then click the help widget again to open the actual Help html file.

Can the documentation for 3.0 still be accessed?

$
0
0
I can only get 2.5 or 3.1, 3.0 does not seem to be anywhere.

We have a 2.5 widget that uses locateTask.addressToLocations(myAddress, myOutFields, new AsyncResponder(onResult, onFault));
and this is totally different in 3.1 due to changes in 10.1.

But I want to see if this is also different in 3.0 or not. That might seal the deal on if we are going to use 3.0 or 3.1.


Thanks.

How do I remove the search from the header (3.1) ?

Flexviewer login screen

$
0
0
Dear All
I get the flex viewer log in screen but when I enter in the username and password I get an "internal database error."
Attached Thumbnails
Click image for larger version

Name:	signine.JPG‎
Views:	N/A
Size:	15.1 KB
ID:	21489  

Identify widget 3.1.1 ? Where is the swf file?

$
0
0
Robert, on your github download I don't see the identifywidget.swf file. I suspect I'm confused.

ArcGIS flex viewer 3.1 Identify Widget

$
0
0
I am fairly new to using custom widgets. I have copied the compiled widget folder over and added the text the the config.xml file. The widget loads correctly in the viewer but I can not get it to detect any features in the map at all. Even with the <layers onlythese="false">. Any help would be greatly appreciated.

Error on legend widget on dynamic layer

$
0
0
I try to use the legend widget for my dynamic layer but get the error message on LegendWidgetLegendSkin.mxml
For some reason, FlexViewer 3.1 uncompiled one didn't have LegendWidgeLegendSkin.mxml. So I added it and I can view the legend on rest services URL. I attached the files. Hope someone know how to solve this. Thank you.
Attached Thumbnails
Click image for larger version

Name:	legenderror.gif‎
Views:	N/A
Size:	17.3 KB
ID:	21517  
Attached Files

Selection Widget in FV 3.1 and warnings

$
0
0
I'm trying to incorporate the Selection widget into my ArcGIS Flex project (3.1) and I'm getting warnings about "Data binding will not be able to detect assignments to "length"." Any suggestions to alter the SelectByAttributes.mxml and SelectionResults.mxml file to resolve these? Warning: I'm a relatively new Flash Builder user.

Example code of two of the offending lines:
Code:

                <s:Label text="{'Features (' + targetLayer.selectedFeatures.length + ')'}"
                                visible="{targetLayer.selectedFeatures.length > 0}"/>

Is it possible to change the color of data from a map service?

$
0
0
Hello,

I am wondering if there is a why I can customize the color scheme for both vector data stored in a mapservice and raster data stored in an image service?

I am using ArcGIS 10.1 and Viewer for Flex 3.1.

Any advice would be great.

Thanks,

George

eSearch Question

$
0
0
Robert-

Forgive me if this can be found in the documentation; I search but found nothing regarding it. Prior to versions 3.1.x if i included "All" at the beginning of a userlist the drop-down would auto-populate with "All" when the widget was launched. In the 3.1.x version no matter what I do I can not get the drop-down to auto-populate with any list item. Does this functionality still exist? I have attached a couple of screen shoots showing what I am talking about. Thanks for any help.

Matt
Attached Thumbnails
Click image for larger version

Name:	Version3.1.x.png‎
Views:	N/A
Size:	555.2 KB
ID:	21564   Click image for larger version

Name:	Version3.0.PNG‎
Views:	N/A
Size:	468.8 KB
ID:	21563  

Search on HeadearController

$
0
0
Hello all,

Changing the setting styles for the viewer more specifically the text color from 0xFFFFFF (white) to a dark color messes up the locate.png icon on the search box. Any suggestion on how to fix it?

Thank you!
Viewing all 2097 articles
Browse latest View live