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

GPX Widget

$
0
0
I'd like to be able to display trackpoints and waypoints from the same GPX file at once, with differing symbology for each. I'm not a programmer, so I'm having some issues figuring this out. I've been manipulating this portion of the code, without success:

Code:

var points:XMLList = gpxXML.descendants("trkpt");
I'm making the assumption I need the trackpoints and waypoints to be in the same XML list. Am I on the right track?

Ashley

Update Widget to Easily Determine Build Version and Date

$
0
0
To Robert Scheitlin:

In a thread you state "You can determine the exact version of the widget by holding the Alt key and clicking on the widget title."

I am able to perform this action only on your widgets, at least that's how it appears.

How does one add this ability to the widget (e.g. Say I modify your widget to suit my specific business needs), so anyone including myself could find out the widget build information without tracking down the developer.

Your assistance is greatly appreciated.

Shapefile Widget

$
0
0
Robert,

I've downloaded the newest version of your Shapefile Widget. I am getting a #2032 when I try to load a shapefile. I think it could be associated with the wkid. Any thoughts?

Ashley

Problem with Flex3.0 widget calling ArcGIS server 10.1 geoprocessing service

$
0
0
Hi all. I've run into another problem with deploying my Flex application. I had it successfully working on a development server, but for the life of me I cannot understand why it is not working on the production server.

For reference:

- windows server 2012 standard (IIS 8)
- arcgis server 10.1
- using arcgis web adapter, although this doesn't seem to be an issue (see below)
- using arcgis flexviewer 3.0 and a customized widget (derived from R. Sheitlin's search widget)
- running custom basemaps and operational layers
- need to call a custom python script running as a geoprocessing service
- both the web server and arcgis server are running on the same physical machine

So the main GUI of the application runs fine, and custom basemaps/operational layers being served up, can be accessed and displayed just fine. It doesn't matter if I access them via the web adapter or not (i.e. http://<IP>:6080/arcgis/rest/services/<servicename> and http://<domain_name>/arcgisWA/rest/services/<servicename> work just fine). So I know I can access data through the web interface that is being served by the Arcgis server.

Additionally, I successfully uploaded all needed data that the python simulation code needs and successfully created a geoprocessing service. I can run this service through ArcCatalog, note that the appropriate service is activated on the server, and get a successfully completed result back (in this case, it emails results to me). So the service is created and running properly (it also doesn't matter if it is created as Synchronous or Asynchronous...see below).

The problem arises when I access it though the Flex3.0 application widget. When the time comes to send data to the geoprocessing service, it is like it calls thin air. Here is a code snipnet I use to do this:

Code:

var params:Object = new Object();
params:Input_State = data;  //simple comma separated string values
params:User_Name = txtUserName.text;  //single string value
var gp:Geoprocessor = new Geoprocessor():
gp.showBusyCursor = true;
gp.url = "http://<ServerIP>:6080/arcgis/rest/services/<servicename>/GPServer/<taskname>";

gp.submitJob(params);  //if I set the service to asynchronous
gp.execute(params); //if I set the service to synchronous; only one of these will be active in code at any one time

This code worked perfectly on my development server in my virtual machine environment. But no matter whether the service is sync or async, on the production server absolutely nothing happens. It effectively throws no errors, but sends the request off into nowhere.

I have added EventListener's to listen for "faultEvents" and nothing triggers. I have added an Alert box to pop up before/after the execute call to show me that the params information is correct. The python script itself has as its first line to open up a unique log file - this helps me monitor a directory to see if the script is even being run. I have changed the gp.url to access both an IP address, as well as the domain name address (and utilizing the web adapter), but still no luck. Flash Builder IDE gives no errors or warnings; the code should work, and indeed does elsewhere.

Any ideas what could be going on here? Am I missing a permissions issue somewhere? Could it be an IIS issue? Thanks for any thoughts/ideas on this.

Brian

Map Switcher Widget description not working for secure services

$
0
0
Re: the Map Switcher Widget that comes with FlexViewer 3.1. When I choose the Description option from the pull-down menu I'm prompted to enter my ArcGIS Server credentials for secure services. Public services point to the REST endpoint description as expected.

I'd like to either:
1) figure out how to get this to work for secure services, or
2) disable the Description option from the Map Switcher widget

I looked at the tag reference and don't see #2 as an option.

Anyone?

Error due to less than or equal (

$
0
0
Hello,

I've tried the following query in Flash Builder 4.6 : <esri:Query id="query1FR" where = " pw_fre <= '{qText2FR.text}' " which causes an error while compiling with a warning message telling that the value of atribute "where" associated to an element type "esri:query" must not contain the character '<'

How do I query properly in Flex using operators "<" and "<=" , can anybody show me how to do it the right way ?
Thanks already,
Pierre

How to draw pie chart in infosymbol?

$
0
0
Hi all,

What I want to do is to draw a pie chart on the map according to the given longitude and latitude. After a little bit of research, I found that infosymbol might be the answer to my problem. However, when I draw the chart, there's always a square background frame and also the legend overlap with the pie chart. Can anyone teach me how to solve it? Thanks in advance!

ArcGIS Viewer for Flex 3.1 - Layer Config

$
0
0
Something seems to be going wrong when I try to configure my layers and basemaps in Flex Viewer 3.1. The issue seems to be around the coordinate system, which is 2193.

I've got my main config setup like this:

Code:

   
<map wraparound180="true" esrilogovisible="false" initialextent="1778634 5433543 1856528 5473165" fullextent="1778634 5433543 1856528 5473165" top="0" addarcgisbasemaps="false">
       
<basemaps>                                               
           
<layer label="Imagery (2010)"  type="tiled" visible="true"
icon="assets\images\basemap_imagery.png"                  url="http://gis.mstn.govt.nz/ArcGIS/rest/services/Basemaps/WairarapaImagery/MapServer"/>                       
</basemaps>

<operationallayers>

<layer label="Boundaries" type="dynamic" visible="true" alpha="0.7"  url="http://gis.mstn.govt.nz/ArcGIS/rest/services/Cadastral/Boundaries/MapServer" />

</operationallayers>
   
</map>

However that doesn't load the map, but it does in Flex Viewer 3.0? It does work though if I change addarcgisbasemaps to true and use WGS coordinates for the initial extent. I know the "addarcgisbasemaps" tag was added in 3.1, so I'm thinking something to do with that.

Syntax for eSearch widget

$
0
0
I have a joined field I would like to reference in the easearch widget. I have a table joined to my GIS layer from a database in another instance. The join exists within the map. The field in the rest endpoint is called :

maximo_production."EARTH\GIS".%GIS_NurseryFlat.nORth_itemnum

How do I add this given it has quotes within it and a \?

Layers Not Loading

$
0
0
I currently have Server 10.1 installed and the Flex App Builder installed on the same machine.

We created a flex application that loads several operational layers that reside on the same server.

When I view the application locally from the server (url: http://127.0.0.1/flexviewers/North%20Carolina/ ) , the layers are loading correctly. However, when I try to view the application from outside of the network in which the server is located, the layers are not loading.

I get "...layer failed to load: Fault Code: Channel.Security.Error"
I also get " layer failed to load: Fault code: 500 "

In my limited research, I found discussions that brought up crossdomain.xml, but in our case, the app is installed and ran on the same server. I also read that with 10.1, the crossdomain.xml is already setup. I verified that it was indeed there and everything looked fine to my untrained eye.

Any suggestions would be very appreciative.

Thanks,

Flex Viewer 3.1 performance very slow after upgrade

$
0
0
I was running 3.0 ArcGIS Viewer for Flex - Application Builder and performance was great. After upgrading to 3.1 the performance of ArcGIS Viewer for Flex - Application Builder has slowed to a crawl. The performance is so slow it limits any productivity. Creating and managing a new application takes 5x -10x longer necessary.

I should add the performance over the web to my external users is great. It is the application builder interface that is lethargic.

Any ideas?

Thank you,

mark C>

question for identify widget for "useutc"

$
0
0
Robert,

I put my question in this forum, hope can put my screen shot and the config file here to make the question clear.
I used the useutc="treu" in the identfy widget for flex api 2.5, but it still show the UTC time not the local time.

Anything is wrong in file? please advise.
thanks
zhujing
Attached Files

Flex Widget Upgrade from 2.4 to 3.1 Problem

$
0
0
I'm just trying to upgrade a flex widget from 2.4 to 3.1 and having a few problems. It works fine in ArcGIS Viewer for Flex 2.4, but when I upgrade it to 3.1 it doesn't work. There were a few easy references and things I had to change in the code to get it to compile, so it does run, but when I open the tool in Flex Viewer I get this error:

TypeError: Error #1007: Instantiation attempted on a non-constructor.


at com.esri.ags.symbols::SimpleFillSymbol/updateStyleImpl()[C:\checkout\flex_api3\api\src\com\esri\ags\symbols\SimpleFillSymbol.as:437]


at com.esri.ags.symbols::SimpleFillSymbol/set style()[C:\checkout\flex_api3\api\src\com\esri\ags\symbols\SimpleFillSymbol.as:245]


at mx.binding::Binding/defaultDestFunc()


at Function/http://adobe.com/AS3/2006/builtin::call()


at mx.binding::Binding/innerExecute()


at Function/http://adobe.com/AS3/2006/builtin::apply()


at mx.binding::Binding/wrapFunctionCall()


at mx.binding::Binding/execute()


at mx.binding::BindingManager$/executeBindings()


at widgets.SelectBufferFind::SelectBufferFindWidget/_SelectBufferFindWidget_SimpleFillSymbol1_i()[C:\Data\Development\Projects\Wairarapa Combined District Map Viewer\Wairarapa Internal Viewer\src\widgets\SelectBufferFind\SelectBufferFindWidget.mxml:48]


at widgets.SelectBufferFind::SelectBufferFindWidget()[C:\Data\Development\Projects\Wairarapa Combined District Map Viewer\Wairarapa Internal Viewer\src\widgets\SelectBufferFind\SelectBufferFindWidget.mxml:48]


at _SelectBufferFindWidget_mx_core_FlexModuleFactory/create()[_SelectBufferFindWidget_mx_core_FlexModuleFactory.as:51]


at com.esri.viewer.managers::WidgetManager/createWidget()[C:\Data\Development\Projects\Wairarapa Combined District Map Viewer\Wairarapa Internal Viewer\src\com\esri\viewer\managers\WidgetManager.mxml:1052]


at com.esri.viewer.managers::WidgetManager/runWidget()[C:\Data\Development\Projects\Wairarapa Combined District Map Viewer\Wairarapa Internal Viewer\src\com\esri\viewer\managers\WidgetManager.mxml:1133]


at com.esri.viewer.managers::WidgetManager/widgetReadyHandler()[C:\Data\Development\Projects\Wairarapa Combined District Map Viewer\Wairarapa Internal Viewer\src\com\esri\viewer\managers\WidgetManager.mxml:1201]


at flash.events::EventDispatcher/dispatchEventFunction()


at flash.events::EventDispatcher/dispatchEvent()


at ModuleInfoProxy/moduleEventHandler()


at flash.events::EventDispatcher/dispatchEventFunction()


at flash.events::EventDispatcher/dispatchEvent()


at ModuleInfo/readyHandler()


at flash.events::EventDispatcher/dispatchEventFunction()


at flash.events::EventDispatcher/dispatchEvent()


at mx.core::FlexModuleFactory/update()


at mx.core::FlexModuleFactory/docFrameHandler()


at mx.core::FlexModuleFactory/docFrameListener()


It appears to be something to do with the SimpleFillSymbol as if I remove the references to it out of the code it works, however it removes some of the necessary functions - it's a drawing tool. So I'm not quite sure what has changed between the Flex API 2.4 to 3.1 that may be causing an issue with this, any ideas?




Changes to XML not being seen

$
0
0
When I make a change to the config of the core applications or soemtimes to a widget, e.g. esearch, the changes don't always appear. I have IE9 and am using viewer 3.1. I have cleared my browsers cache, cleared the "Flash Cache" by navigating to http://www.macromedia.com/support/do...manager07.html and right-clicked on viewer application, right-clicked, chosen setting and set local storage to none. All to no avail. Any suggestions?

What's your favorite XML editing tool/application?

$
0
0
I'm just getting started with Flex and editing XML files. I've been using Notepad and Wordpad on Windows, but it seems there has to be something better. So, do you have a favorite XML editing program that you can't live without? Free is best, but up to about $50-$75 isn't too bad. I've seen some that are in the multi-hundreds of dollars, but that's too much for me.

Enable default popups for user added layer

$
0
0
Using version 2.5, I have a widget that allows users to add their own dynamic services to the TOC by entering the service URL and selecting a layer. I'm trying to enable the default identify tool to work for user layers the same way it works when using the "popupconfig" option in the XML config file for a layer. I can use my widget to add a new layer to the TOC and display it, but nothing happens when I click on a feature. The popup works if I define the same layer in my XML config file with the popupconfig option. Has anyone else tried this? I want to be able to use popups for user added layers without needing a precreated popup XML file or using the IdentifyWidget.

Code:


private function createPopUp(url:String,layer:ArcGISDynamicMapServiceLayer,layerId:int):void

var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, completeHandler);
loader.load(new URLRequest(url+"/"+layerId+"?f=json"));

function completeHandler(event:Event):void {
        var loader:URLLoader = URLLoader(event.target);
        var svc:Object = JSON.decode(loader.data);
        var popupFields:Array = [];
        var firstfield:String =null;
        for each(var field:Object in svc.fields)
        {
                if(field.name=="OBJECTID"||field.name=="Shape_Length"||field.name=="Shape_Area" || field.name=="Shape")continue;
                var popupFieldInfo:PopUpFieldInfo = new PopUpFieldInfo();
                if(!firstfield)firstfield=field.name;
                popupFieldInfo.fieldName = field.name;
                popupFieldInfo.label = field.alias;
                popupFieldInfo.visible = true;
                popupFieldInfo.format = new PopUpFieldFormat();
                popupFields.push(popupFieldInfo);
        }
        var popUpInfo:PopUpInfo = new PopUpInfo();
        // Tell the pop-up info about the field name template
        popUpInfo.title = "{"+firstfield+"}";
        popUpInfo.popUpFieldInfos = popupFields;
       
        // Create the class factory
        var popUpRenderer:ClassFactory = new ClassFactory(PopUpRenderer);
        // Set the "popUpInfo" key
        popUpRenderer.properties = { "popUpInfo": popUpInfo };
        var layerInfoWindowRenderer:LayerInfoWindowRenderer = new LayerInfoWindowRenderer();
        layerInfoWindowRenderer.layerId = Number(layerId);
        var infoWindowRenderer:ClassFactory = new ClassFactory(PopUpRenderer);
        infoWindowRenderer.properties = { popUpInfo: popUpInfo };       
        var arrLayerInfoWindowRenderer:Array = [];
        arrLayerInfoWindowRenderer.push(popUpRenderer);
        layer.layerInfoWindowRenderers=arrLayerInfoWindowRenderer;
}
}

Favicons for Flex Site

$
0
0
I'd like to add a favicon to my Flex viewers - the little 16x16 icon that sticks in front of a bookmark. I noticed that when I ran Fiddler it says I have no favicon. Can you do this using the flex viewer or just by editing the xml?

eSearch Widget: Sorting Results

$
0
0
Can you sort the results in the eSearch widget? Sometimes a search will return 50 or 100 results, and I'm wondering if I can apply sorting to the results to help the user find what they are looking for faster. I might be blind, but I didn't noticed a mention of it in the instructions.

Identify Widget: Displaying Subtype Data

$
0
0
My subtype data does not display for some reason. I have 2 operational services, and probably 40 layers, and in none of them my subtype data displays. However, all the other data appear just fine. Am I missing something or is it just not possible to display that type of data?

MapServices Widget for Flex 3.0 API

$
0
0
Does anyone know where I would download this widget for the 3.0 build? I tried using the 3.1 build, but it gave me a black screen when run in my FlexViewer 3.0 app.
Viewing all 2097 articles
Browse latest View live