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

eSearch functionality changes on public facing application.

$
0
0
Hello,
In using the eSearch widget to find address and APN fields, both are strings, I'm coming up with different search capabilities. When I run the query on the internal server address everything works fine, results and queries can be run on both text and numerical info. When I run it on the public url address I am able to perform the search if I type only the street name but not if I include the street number with the street name and the APN search is no longer working. I get error message 2032. Could this have something to do with numerical values in a string field?
<layer>
<token/>
<definitionexpression/>
<name>Parcel Address</name>
<url>http://gismaps.buttecounty.net/arcgis/rest/services/BCDataSearch/MapServer/2</url>
<expressions>
<expression alias="Address" extsearchlabel="Search Parcel Addresses">
<values>
<value prompt="Address: Ex. 49 Maxwell St or Maxwell St " isvaluerequired="false">SITUS LIKE ('%[value]%')</value>
</values>
</expression>
</expressions>
<graphicalsearchlabel>Use one of the graphical search tools to select addresses</graphicalsearchlabel>
<spatialsearchlayer>true</spatialsearchlayer>
<titlefield>SITUS</titlefield>
<fields all="false">
<field name="APN" alias="APN" gridfield="true"/>
<field name="SITUS" alias="Situs" gridfield="true"/>
<field name="TRA_NUM" alias="TRA Number" gridfield="true"/>
<field name="Jurisdictn" alias="Jurisdiction" gridfield="true"/>
<field name="GP" alias="General Plan" gridfield="true"/>
<field name="Zone" alias="Zone" gridfield="true"/>
<field name="SplitZone" alias="Split Zone" gridfield="true"/>
<field name="SupName" alias="Supervisor" gridfield="true"/>
<field name="Acres" alias="Approx. Acres (Use as reference only)" gridfield="true"/>
</fields>

Thanks,
Lacey

Export Web Map Service

$
0
0
Can you use the export web map service to export map images using ArcGIS server 10.0 or is it only 10.1 and up?

Arcgis Flex 3.5 + Flex SDK 4.11 Problem

$
0
0
Hi,

I was updating the Flex SDK to 4.11 version for my project, but when I use a Task (for example PrintTask), there is an error with the JSON utilities include in the Flex Arcgis API.

This is the stack trace when I launch task.

Code:

Error: Propriété inconnue : dispatchResetEvent.
        at mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/collections/ListCollectionView.as:940]
        at JSON$/stringifySpecializedToString()
        at JSON$/stringify()
        at com.esri.ags.utils::JSONUtil$/encode()[C:\checkout\flex_api\api\src\com\esri\ags\utils\JSONUtil.as:49]
        at com.esri.ags.tasks::Geoprocessor/toURLVariables()[C:\checkout\flex_api\api\src\com\esri\ags\tasks\Geoprocessor.as:991]
        at com.esri.ags.tasks::Geoprocessor/submitJob()[C:\checkout\flex_api\api\src\com\esri\ags\tasks\Geoprocessor.as:843]
        at com.esri.ags.tasks::PrintTask/submitJob()[C:\checkout\flex_api\api\src\com\esri\ags\tasks\PrintTask.as:360]

I don't know if the problem come from Flex SDK or JSONUtil, but if I use the Flex SDK 4.9.1, it works.

Could you give me your feed back if I you resolve this problem for the next release of Flex Arcgis library.

Best regards.

Identify Widget 3.5.1 Problem

$
0
0
Hello

I'm using Flex Builder 3.5 and trying to configure the Identify 3.5.1 widget.

When I go into the GUI I can browse to my map service and choose the layer I want to identify.
The attribute field pull through automatically and I have chosen those fields that I want to include in the results.

When I add the search there is a warning triangle saying layer not found.
The layer is definately there as I've browsed to it and the widget has managed to select the fileds from that layer.

Why do I still get the layer not found? If I try the identify in my web application it doesn't return any data and I canot identify anything.

Has anyone got any ideas? I've tried identifying only these layers or all layers but it makes no difference. I have removed all the example layers that pull through by default so its only trying to look at my layer.

Thanks
Emma

USNG Widget with Different Projection Coordinate System

$
0
0
We are trying to find the USNG widget with different Projection Coordinate System, like NAD_1983_HARN_StatePlane_Florida_East_FIPS_0901_Feet. It seems that we can only find one for Web Mercator in ArcGIS Resources website. Does anybody know where we can find the widget we want or how we can make one by ourselves? Any help or suggestion would be greatly appreciated.

Buffer disappears after search is complete i (enhanced search 3.4)

$
0
0
Hi there,

I am having a issue with the spatial search in the Enhanced search widget (Flex viewer v3.4). Once a search is complete and a buffer is created when we select "completely contained" or one of the other options in the buffer the widget provides the new results while the buffer disappears. Is this something i can fix or is it just part of the widget's behaviour? I find it is helpful for the user to see where the buffer is in case they need to correct or pick a larger buffer. In version 2.5 the buffer was visible when the results appeared. Any help would be appreciated.

Thanks,
Patricia
Attached Files

Identify Widget 3.5.1 issue

$
0
0
Robert -

I recently upgraded the Identify widget from 2.5.8 to 3.5.1 (as well as to flew viewer 3.5). I had identified an issue with the Identify 2.5.8 in which is what not returning any domain associated values. I was ecstatic when upgrading to 3.5.1 cleared up the issue. However, it was pointed out to me that I seem to have traded one issue for another. Now, the Identify widget is not returning non-domain associated values!

I have tried a number of things, but have had no success with addressing this issue (the Search tool 3.5.3 is returning both domain and non-domain associated values).

Unfortunately, my webservices are internal only, but I am including the Identify.XML for your perusal. For reference, I am including a screen cap showing the results for Identify and Search for the same feature. In particular, LOCATION, LOCATIONDESCRIPTION, INSTALLATIONDATE are blank for Identify but not for Search.

Any help you can provide is greatly appreciated!

Thanks,
Michael

<?xml version="1.0" ?>
<!-- encoding="UTF-8" -->
<configuration>
<identifylayeroption>visible</identifylayeroption>
<identifytolerance>5</identifytolerance>
<defaultzoomscale>5000</defaultzoomscale>
<keepidentifyactive>true</keepidentifyactive>
<returngeometryforzoom>true</returngeometryforzoom>
<enablelineselect>true</enablelineselect>
<enableextentselect>true</enableextentselect>
<enablepolyselect>true</enablepolyselect>
<enablecircleselect>true</enablecircleselect>
<enableellipseselect>true</enableellipseselect>
<enablemouseovergraphicsinfo>false</enablemouseovergraphicsinfo>
<enablemouseoverrecordinfo>true</enablemouseoverrecordinfo>
<enablegraphicclickinfo>true</enablegraphicclickinfo>
<usemaptime>false</usemaptime>
<infoautoclosemilliseconds>2000</infoautoclosemilliseconds><!-- 2 seconds -->
<autoactivatedtool>mappoint</autoactivatedtool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->
<excludebasemaps>true</excludebasemaps>
<disablepopuplinks>false</disablepopuplinks>
<disablelayerdropdown>false</disablelayerdropdown>
<disablealllayerschoice>false</disablealllayerschoice>
<replacenullswithemptystring>true</replacenullswithemptystring>
<labels>
<zoom2message>Click to Zoom to Point</zoom2message>
<identifylabel>Identify</identifylabel>
<resultslabel>Results</resultslabel>
<descriptionlabel>Use the identify tool to identify features on the map:</descriptionlabel>
<pointlabel>Identify by Point</pointlabel>
<linelabel>Identify by Polyline</linelabel>
<rectlabel>Identify by Rectangle</rectlabel>
<polylabel>Identify by Polygon</polylabel>
<circlelabel>Identify by Circle</circlelabel>
<ellipselabel>Identify by Ellipse</ellipselabel>
<clearlabel>Clear</clearlabel>
<loadinglabel>Loading...</loadinglabel>
<removeresultmessage>Remove Result</removeresultmessage>
<idfrom>Identify From</idfrom>
<noresultsfoundlabel>No Results Found</noresultsfoundlabel>
<resultsfoundlabel>Results Found</resultsfoundlabel>
<alllayers>All Layers</alllayers>
<layersremaining>layers remaining:</layersremaining>
</labels>
<useproxy><!-- Enter the label of the MapService from the main config.xml -->
<!--<proxymapservice label="Imagery" />
<proxymapservice label="Streets" /> -->
</useproxy>
<layers onlythese="true">
<layer>
<name>Pressurized Mains</name>
<id>16</id>
<url>http://gisweb/ArcGIS/rest/services/MSEX_Enterprise_TUI_TESI/MapServer</url>
<fields>
<field name = "MSEX_ID" alias="MSEX_ID" />
<field name = "SUB_TYPE" alias="Type of Main" />
<field name = "DIAMETER" alias="Diameter" />
<field name = "MATERIAL" alias="Material" />
<field name = "LIFECYCLESTATUS" alias="Life Cycle Status" />
<field name = "INSTALLDATE" alias="Installation Date" dateformat="MM/DD/YYYY" />
<field name = "ACTIVATIONDATE" alias="Activation Date" dateformat="MM/DD/YYYY" />
<field name = "LOCATION" alias="Location" />
<field name = "LOCATIONDESCRIPTION" alias="Location Description" />
<field name = "REPORTEDLENGTH" alias="Reported Length (ft)" />
<field name = "SHAPE.LEN" alias="GIS Length (ft)" numberformat="2|,|."/>
<field name = "WAM_ID" alias="WAM ID" />
<field name = "CRITICALITY" alias="Criticality" />
<field name = "MATERIALSPEC" alias="Material Specification" />
<field name = "PIPECLASS" alias="Pipe Class" />
<field name = "COMMENTS" alias="Comments" />
</fields>
<linkfield></linkfield>
<linkprefix></linkprefix>
<linksuffix></linksuffix>
<iconfield></iconfield>
<iconprefix></iconprefix>
<iconsuffix></iconsuffix>
<zoomscale>5000</zoomscale>
<forcescale>true</forcescale>
</layer>
</layers>

<symbols>
<simplefillsymbol color="0x448ccb" alpha="0.4"
style="solid">
<outline color="0x448ccb" alpha="0.8" width="2" />
</simplefillsymbol>
<simplemarkersymbol style="circle" size="12"
color="0x448ccb" alpha="0.8" xoffset="0" yoffset="0" angle="0">
<outline style="solid" color="0xffffff" alpha="0.8"
width="1" />
</simplemarkersymbol>
<picturemarkersymbol url="assets/images/i_info.png"
height="30" width="30" xoffset="0" yoffset="0" />
<simplelinesymbol color="0x448ccb" alpha="0.8"
width="2" />
</symbols>
</configuration>
Attached Thumbnails
Click image for larger version

Name:	Identify-Search copy.jpg‎
Views:	N/A
Size:	150.2 KB
ID:	28971  

PrintTask and text symbols with glow filter

$
0
0
I am having trouble with converting a text symbol with a glow filter (halo effect) to a Export Web Map Task text symbol with halo attributes.

My app is based on an old flex viewer app that I have upgraded the flex API a couple of times over the last few years.

It's currently using the 3.1 API from December 2012 and Flex 4.5.
The export Web Task is 10.11

The app has the draw widget and the print widget.

This is basically the code that adds a graphic to the map:

Code:

protected function addText(myGraphicsLayer:GraphicsLayer):void
{
var txtSym:TextSymbol = new TextSymbol("hello world");       
txtFormat = new TextFormat("Arial", 12, 0xFF0000,null,null,null);
txtSym.textFormat = txtFormat;
                                       
var gra:Graphic = new Graphic(measurePt);
gra.symbol = txtSym;
gra.filters = [glowText];

myGraphicsLayer.add(gra)
}
...

<fx:Declarations>
<s:GlowFilter id="glowText" blurX="3.0" blurY="3.0" alpha="1" color="#FFFFFF" strength="7"/>
</fx:Declarations>

This appears on the map nicely as red text with a white halo. Cool.
Note: The Halo is required as the text will often be unreadable over a map.

Now if I try to print that using the PrintTask:

Code:


private function printButton_exportWebMapClickHandler(event:MouseEvent):void
{

...
 printTask.execute(printParameters);
...
}


...

 <fx:Declarations>
        <esri:PrintTask id="printTask"
                        executeComplete="printTask_executeCompleteHandler(event)"
                        fault="printTask_faultHandler(event)"
                        getResultDataComplete="printTask_getResultDataCompleteHandler(event)"
                        getServiceInfoComplete="printTask_getServiceInfoCompleteHandler(event)"
                        jobComplete="printTask_jobCompleteHandler(event)"
                        showBusyCursor="true"/>

                <esri:PrintParameters id="printParameters"
                        format="{formatsDDL.selectedItem}"
                        layoutTemplate="{layoutTemplatesDDL.selectedItem}"
                        map="{map}"
                        preserveScale="true" >                               
            <esri:layoutOptions>
                <esri:LayoutOptions id="layoutOptions"/>
            </esri:layoutOptions>
                        <esri:exportOptions>
                                <esri:ExportOptions dpi="200"/>
                        </esri:exportOptions>
        </esri:PrintParameters>
    </fx:Declarations>

The print result has no halo effect and the text is difficult to read depending on the map underneath.

If I debug the print parameters being sent to the printTask - I.E. PrintParameters->map->layers->myGraphicsLayer->GraphicsProvider[myGraphic] , there is nothing related to the glow filter.

Even if there was, it probably wouldn't get translated to the halo attributes on the ExportWebMapTask text symbol specifications like most of the other attributes are.

So what do other people do for the Halo effect if not apply a glow filter? There is the 'background' attributes on a text symbol which looks terrible on the map.

Worst case scenario - can I intercept the 'Web_Map_as_JSON' outgoing request parameter and add halo attributes to all text symbols?

I feel like I'm missing something or there is some basic functionality missing.

Regards

Andrew

Compile Flex Viewer src

$
0
0
Hello

Is it possible to compile the src flex builder without Flash Builder???? for example using ant or eclipse...

If so, how? :D

Print Widget and area preview

$
0
0
Dear all,
I would like customize the default print widget.
I would like show on the map the area that will be printed.

Any suggestion?

Regards
Giuseppe P.

layer failed to load: Fault info: E0011E: Invalid feature layer:

$
0
0
For the web app in question I am using the Viewer for Flex 3.2 and ArcGIS for Server 10.1.

I am using a python script to publish my mapservices. Previously I was using a unique mxd doc for each service (18 in total). Publishing the services individually worked fine. My current script combines what use to be 18 mxds into (1) mxd and publishes it.

Based upon the Rest services, it appears that everything published correctly:
I changed my xml file to import each service as a feature layer instead of a dynamic one.

Original code when using individaul services:
<layer url="http://naip.giscenter.isu.edu/arcgis/rest/services/RECOVER_PonyFire/evc/MapServer" label="Existing Vegetation Cover (EVC)" visible="false" type="dynamic" imageformat="png8"/>

New code when all services are combined:
<layer url="http://naip.giscenter.isu.edu/arcgis/rest/services/RECOVER_pythonTest/basemap/MapServer/2" label="Existing Vegetation Cover (EVC)" visible="false" type="feature" mode="onDemand"/>

If I change the type to dynamic, get rid of the mode and set the imageformat = png8, then I don't get an error, the layer label appears, however the layer is not visible even with the visiblity set to true. Even the zoom to option is not active.

The data being used in the mxds are .tif files.

If I use the following code I can bring everything in together, however I want to be able to pick and choose layers and control the order they appear, etc.
<layer url="http://naip.giscenter.isu.edu/arcgis/rest/services/RECOVER_pythonTest/basemap/MapServer" label="BASEMAP" visible="true" type="dynamic"/>

I'm sure this is something simple. I'm just not seeing it. Again, I want to be able to pull in and control each layer in my map and not as one big service.

Thanks

Where to store variables for entire application

$
0
0
My theoretical Flex Viewer application has need for keeping track of various data across the whole application, rather than local to a widget or two. Multiple widgets will often want to read/write to some global variables.

For example, if I log in as user#381 and select project#4, I want all widgets to be able to see at any time what user is logged in and what project was selected.

What's the best way to do this? I thought about AppEvents to communicate between widgets, but this is more about variable storage, not communication. I don't want every widget to have to keep track of what user is logged in or what project they are accessing.

Thanks!

Print Widget: Capabilities depending upon Server & Flex versions

$
0
0
Is there some place where the following might be found: a description or checklist of what the Print Widget (or any other component) can do depending upon the version of Flex and the version of ArcServer one is using?

I'm using ArcServer 10.0 and Flex Viewer App Builder 3.5. From the limited discussion in the Flex Viewer help - and from several threads on this forum: since I'm using Flex 3.5, I have the latest features for the PrintWidget; however, since I'm using ArcServer 10.0, not all those features are available to me. So...

Am I limited to WYSIWYG 'quick printing' until I move to ArcServer 10.1/10.2?

What Print Widget 3.5 functions can I use with ArcServer 10.0? For example, I modified the PrintWidget.xml to enforce a standard subtitle. That worked, as I expected it to. Then, I was trying to set the dpi at 300 (from the standard 96); as far as I can tell from the file size of sample output PDFs (using the Adobe PDF print writer), this setting was ignored (Flex printed the file without any error messages).

Thanks!!

Mike

set map scale widget

$
0
0
Hi,
I'm looking for a widget that can either set the scale of the map in a dropdown with configurable scale values, or a text box that you type the map scale into so that the user can navigate using default or standard map scales rather than use the navigation widget or roll button on the mouse. Has anyone ever come across this kind of widget? I'm looking for something very similar to the scale control that we get in ArcMap.
Thanks,
Jon

Enhanced Locate Widget: How to change point unit abbr?

$
0
0
In setting a coordinate system to use for point units, I can look up the WKID here http://resources.esri.com/help/9.3/a.../rest/pcs.html but where is the lookup table for "abbr"? I'm trying "<pointunit abbr="wgs84ddm" wkid="4326" ylabel="Latitude:" xlabel="Longitude:" example="85-50.50 W, 33-39.33 N">Degrees Decimal-Minutes (WGS84)</pointunit>" with no success

Search Widget questions

$
0
0
I am trying to reconfigure the standard search widget. There are 2 things I'd like to do:

1- I would like to flip the locations of the text search and graphical search buttons so the text search appears to the left of the graphical search.Attachment 29110

2- I would like to add a Clear button to the results window.Attachment 29111

Any help in either direction would be appreciated. I'm using ArcGIS Viewer for Flex 3.5 App Builder, Notepad++ and Flash Builder.

Scott
Attached Thumbnails
Click image for larger version

Name:	SearchButtons.png‎
Views:	N/A
Size:	15.1 KB
ID:	29110   Click image for larger version

Name:	ResultsClear.png‎
Views:	N/A
Size:	16.9 KB
ID:	29111  

Remove leading zeros from value

$
0
0
Hi,
I would like to have the leading zeros removed from the output results. For example when a feature is selected and the attributes are displayed I want it to show L-12345 not L-0000000012345. Or if you do a search by typing in L-12345 and not
L-0000000012345. Is there a way to do this in the esearch widget tool? Thanks!

Getting excel or csv to display in map

$
0
0
Hello. So I am using flex 3.5 compiled and or App builder. I have an application that has two operational layers. One of the layers is a service located on our server. The second one is a service located on someone else's server. The service that they have provided us does not have a attribute table available. However I have an excel or csv that has the data that we need. Because the service provided doesn't have a attribute table available I obviously can't set one up in the config file or the app builder. So my question is. Is there a way to get my excel or csv to be displayed in my application as just a simple key sort of speak.
Erik

ArcGIS Online Feature Service and Related Records Issue

$
0
0
I'm Stumped...

I have created a feature service on my ArcGIS Online developer account. The feature service has several layers, and two tables. The two tables are related (via a relationship class) to two of the feature class layers.

The layers from the service display inside the Flex Viewer (3.5) no problem. However, the info PopUps, and the attribute table always report "no related records" (screen shot attached).

I have verified through the REST end points that the related data is present. I can go to the service directory for my ArcGIS Online service, and the "query related records" function is there, and works from the HTML page. Attached screen shots show my testing through the REST service seems to work.

I have tried the service with permissions set to "Everyone" and to my organization only - same result.

The same data worked when it was on my local development ArcGIS server just fine.

So, it seems like for whatever reason the Flex viewer (maybe the API?) does not recognize relationships when the service in in Arc GIS Online.

Has anyone else been able to get this to work?

Chris
Attached Thumbnails
Click image for larger version

Name:	RESTEndpoint.JPG‎
Views:	N/A
Size:	162.8 KB
ID:	29152   Click image for larger version

Name:	QueryRelatedResults.JPG‎
Views:	N/A
Size:	141.0 KB
ID:	29153   Click image for larger version

Name:	FlexResults.JPG‎
Views:	N/A
Size:	190.3 KB
ID:	29154  

Set initial time on Time Widget

$
0
0
Does anyone know if there is an easy way to set the initial time on the Time Widget? I'd like to set it to the most recent time, not the start of the time period.

Thanks!

David Wilcox
Virginia Institute of Marine Science
Viewing all 2097 articles
Browse latest View live