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

Geoprocessing tasks suddenly taking a very long time

$
0
0
I have about 15 applications set up via ArcGIS Viewer for Flex V3.0. Most of them use the print widget to create custom layout jpgs and pdfs, and one of them uses an Export Data geoprocessing service. Both of these geoprocessing services have worked fine for the last few months, but last week suddenly stopped working. Well, they do sometimes, eventually (taking between 5 to 10mins) spit out the odd pdf or jpg, but the export data one just times out.

I can't work out why this would be - I wasn't even here on Friday when they stopped working. I have since tried creating a new application from scratch and adding in the print task and I have tried creating a new application that just has a tiny amount of data in it, but the same issue occurs. When I run a normal geoprocessing task, print or export in ArcMap on the server, it does it in no time.

Does anyone have any ideas as to what could be the reason behind this sudden error?
Thanks in advance for any ideas...

Feedback please - Render Terrain Widget

$
0
0
Hi, I've created a widget to create a simulated terrain model of our LiDAR data. Please, try it and let me know if the user interface - tilt, rotation and freeze is user friendly, thanks!

gis.macombgov.org/flexviewer2

The widget is under "I want to..." Render Terrain.

etime update extent

$
0
0
How can I update the ti me extent without restarting my service for a layer that updated on a five minute basis? I have read about the return updates capability, but don't know how to apply it to the time slider widget.

Non interactive widget

$
0
0
Hi Guys,
Has anyone created a non interactive widget? I basically want to add a module that has access to the widget framework (config data, map etc etc) but doesn't have an icon or placement on any widget containers. I really want this to be completely independent of the Viewer core code so I don't have to worry about upgrades and customising the viewer code, but I want it to load automatically as any other widget.

Has anyone built something along these lines?

Cheers,
F

Polygon.contains throws a script timeout error

$
0
0
The Polygon.contains method throws a script timeout error for certain polygons . I'm using esri flex viewer 2.5 and please let me know, how i can get around the issue.

Code:

for(var p:Number =0; p < _polyResult.rings.length; p++)
{
        var _polygonSingleR:Polygon = new Polygon();
        _polygonSingleR.rings = [];
        _polygonSingleR.rings.push(_polyResult.rings[p]);
        _polygonSingleR.spatialReference = _spatialReference;
                                       
              for(var q:Number =0; q < _polyResult.rings.length; q++)
        {
          if(p != q)
                {
                var _arrMapPoints:Array = _polyResult.rings[q];
                      var _temp:Number = 0;
                for(var r:Number =0; r < _arrMapPoints.length; r++)
        {
                        var _mapPoint:MapPoint = _arrMapPoints[r] as MapPoint;
                                                               
                        if(_polygonSingleR.contains(_mapPoint))
                        {
                        _temp++;
                        }
                }
                                                       
                    if(_temp == _arrMapPoints.length)
                {
                                                                _arrValidatedGaps.push(_polyResult.rings[q]);
                }
                }
        }
        }

Spatial search in Eserach

$
0
0
Robert,

In the spatial search of the enhanced search 3.0, is that possible to keep the first result highted even after you create buffer and search the entites? Right now after you searched the entities, the high lights will be the new search entities not the first search result before you create buffer. I'd like to keep them both high lighted.


Also, after you click the searched entities, the map will zoom to the level based on the entities layer, may i still keep the zoom level base on the set up base on result layer used to create buffer before, or the the buffer graphic layer.

Thanks
Zhujing

draw line programmatically

Disable link if field is null in Popup

$
0
0
Has anyone been able to disable links in popups if the field is null? This can be found in Robert's eSearch widget and is very nice feature eliminating the confusion users have who are not familiar with the process when they try to click on a link and nothing happens. Possible enhancement to a future release?? Any help is appreciated.

Thanks,

Matt

Interesting Basemaps? Post them up!

$
0
0
Does anyone have some particularly interesting basemaps that they've stumbled across and gotten to work in the viewer? I'm always looking for new backgrounds to try. If you have some post them up! Unique data or visualizations are fun. I've got a few I've tried recently to get started.

Code:

<layer label="MapquestWebTiled" type="webtiled" visible="true"
                        alpha="1.0"
                        url="http://{subDomain}.mqcdn.com/tiles/1.0.0/vx/map/{level}/{col}/{row}.jpg"
                        subdomains="mtile01"/>           
       
<layer label="Toner (maps.stamen.com)" type="webtiled" visible="false"
                        alpha="1.0"
                        url="http://{subDomain}.stamen.com/toner/{level}/{col}/{row}.png"
                        subdomains="tile"/> 
<layer label="Terrain (maps.stamen.com)" type="webtiled" visible="false"
                        alpha="1.0"
                  url="http://{subDomain}.stamen.com/terrain/{level}/{col}/{row}.png"
                        subdomains="tile"/> 
<layer label="Watercolor (maps.stamen.com)" type="webtiled" visible="false"
                        alpha="1.0"
                        url="http://{subDomain}.stamen.com/watercolor/{level}/{col}/{row}.png"
                        subdomains="tile"/>

Viewer 3.3 Draw tool and enableGraphicsLayerMouseEvents

$
0
0
Hi All,

Looking at the MapManager the draw tool in it doesn't have an associated graphicsLayer, therefore passing through enableGraphicsLayerMouseEvents true on setMapAction is essentially useless?

Cheers,
F

Viewer 3.2 - Order of Popups

$
0
0
I have two popups configured in my viewer, one from a basemap layer and the other from an operational layer.

What determines the display order of the popups when I click a location where features from both layers exist? The image below shows that the Parcel Info (from basemap layer) shows up first and I have to click next (2 of 2) to get to the Waste Collection Info (operational layer) popup.

Can I change a configuration anywhere to make Waste Info show up as popup #1, the default? I played around with the title of the popups to see if it was sorted alphabetically, but it seems not. Do basemap layer popups always display before operational layer popups?

Thanks,
Ryan
Attachment 25063
Attached Thumbnails
Click image for larger version

Name:	popup.jpg‎
Views:	N/A
Size:	13.3 KB
ID:	25063  

Could I get an example for linkprefix?

$
0
0
This should be an easy one. I think all I need is an example. Right now I have a field that has a file name and I need to append a link prefix to it. I got it to work in the pop-up like so:
Code:

{APN}
{FINDING}
<a href="http://server/folder1/folder2/{FILENAME}">PDF Link</a>

When I attempt to configure the Identify widget I see a location for a link prefix but can't find an example of how to enter the necessary prefix.

Code:

              <links>
                <link includeinresults="true" field="FILENAME" alias="PDF Link" tooltip="View PDF">
                    <linkprefix/>
                    <linksuffix/>
                    <iconfield/>
                    <iconprefix/>
                    <iconsuffix/>
                </link>

Any help would be greatly appreciated.

Popup behavior for dynamic layers vs feature layers

$
0
0
Is there a difference in how popups are handled for dynamic and feature layers? My dynamic layer popups perform much 'better' in the fact the features are easy to identify and the popups are displayed in order of the layers in the legend. when I use the feature layer to show popups, the features are much harder to click, and the layer(s) below my feature layer(which is the top one) show first. I have to use a feature layer so I can see related records in the attribute table widget....yea, they do not show otherwise..grrrr....

I want users to have an easy time selecting features for popup, and not have to turn off layers all the time to do something that is easy with a dynamic layer.

ideas? explanations? thanks!

EditWidget 3.0, no attribute list, site freezes

$
0
0
Hey all:

I am using the 3.0 version of the Edit Widget and running into problems. The widget sees my SDE feature layer, and allows me to add and delete features.

However, none of the fields in the layer display in the Attributes window (see the first attached screen capture). As a consequence, I cannot edit the attribute data and can only close the window or delete the feature. There's no OK button. Furthermore, any action I take using the widget freezes the screen, navigation tools, etc., and forces me to refresh the site.

Any edits i have made to the geometry are reflected only after I refresh.

In the service, there's a section called Templates that includes only two prototype attributes (see the second attached screen capture). Is this the problem?

I don't see anywhere in the SDE nor in the MXD where I can alter a prototype template. All of the fields in the feature class are editable; most, but not all, are turned on; there are a couple of domains for fields like County and MapStatus.

Here's the site: http://gis.ncdcr.gov/cleansite/defau...g=EditTest.xml

Feel free to test drive it. Please don't delete anything existing except the black X boxes or green check boxes though!

--ASE.
Attached Thumbnails
Click image for larger version

Name:	AttributesWindow.png‎
Views:	N/A
Size:	88.7 KB
ID:	25079   Click image for larger version

Name:	FeatureLayer_Types_Templates_Prototype_Attributes.png‎
Views:	N/A
Size:	137.1 KB
ID:	25080  

Password Encryption at Transport layer??

$
0
0
noticed that when using Fire Bug the 'Post Get token' to access secure map services show the user name and password as plane text. is this getting encrypted at the transport level?

Attachment 25096
Attached Thumbnails
Click image for larger version

Name:	UandP.png‎
Views:	N/A
Size:	7.2 KB
ID:	25095   Click image for larger version

Name:	UandP (2).jpg‎
Views:	N/A
Size:	27.3 KB
ID:	25096  

WMS basemaps doesn't work with 3.3

$
0
0
Hi everyone,
This is so strange, my WMS layer used to work fine in Flex Viewer / API 3.1.

But now with 3.3 (and tested in 3.2), it doesn't show up.

Is there a change in WMS layer properties since FW / API 3.2 ??

Alex
Quebec city

Code:

            <basemaps>
                    <layer type="wms" label="SCO wms" icon="assets/images/SCO2.jpg" imageFormat="jpg"
                            skipgetcapabilities="true"
                            visiblelayers="CMQ"
                            version="1.1.1"
                            url="http://ws.sco.prod/lizardtech/iserv/ows?" visible="true"/>
            </basemaps>

Header Controller Search Widget

$
0
0
Really liking the new integrated search into the header :)

Just a bit confused about the "Clear" graphics button, if there is one? I've configured up some symbology to show on the map, but there is no way to clear it, unless you do another search.

I see there is a tag in the config for it - <clearfeaturelabel>
but I can't actually see where the button is to clear result graphics from the map?

I must be missing something pretty obvious here.

Viewer 3.3 get frozen

$
0
0
Hi,

I'm using Flex-Viewer 3.3 pointing to an ArcGIS server 10.0 sp5 (database based on arcsde 10 and postgresql 8.4).
There is a mapservice with a layer of polygons related to a table.
When the info popup window shows up, sometimes it gets frozen and cpu goes to 100%. I noticed that if "f=json" all works properly, if "f=amf" the widget gets stuck (f.i. http://localhost/arcgis/rest/service...mf&objectIds=6 )

Do you have any suggestion?
Giuseppe

Edited: After a while I get this error

Error: Error #1502: A script has executed for longer than the default timeout period of 15 seconds.
at com.esri.ags.components.supportClasses::DoubleField/format()
at com.esri.ags.components.supportClasses::DoubleField/set data()
at com.esri.ags.components.supportClasses::DoubleField()
at com.esri.ags.components::AttributeInspector/createFormItemComponent()
at com.esri.ags.components.supportClasses::FormField/getRendererInstance()
at com.esri.ags.skins.supportClasses::AttributeInspectorRenderer/commitProperties()
at mx.core::UIComponent/validateProperties()
at spark.components::Group/validateProperties()
at mx.managers::LayoutManager/validateProperties()
at mx.managers::LayoutManager/doPhasedInstantiation()
at mx.managers::LayoutManager/doPhasedInstantiationCallback()

flex viewer errors(1046, 1067,1119) in the fresh install

$
0
0
Hi there, I was hoping someone could help me figure out what I am missing. I am trying out my first install of flex viewer 3.3, with flex api 3.1. When I try to run my index.mxml file, I get bunch of error messages like :

1046: Type was not found or was not a compile-time constant: UniqueValueRenderer. RendererParser.as /arcgis-viewer-flex/src/com/esri/viewer/utils line 74 Flex Problem
1046: Type was not found or was not a compile-time constant: VETiledLayer. ConfigManager.as /arcgis-viewer-flex/src/com/esri/viewer/managers line 1201 Flex Problem
1119: Access of possibly undefined property exportColumnDelimiter through a reference with static type com.esri.ags.components:AttributeTable. AttributeTableWidget.mxml /arcgis-viewer-flex/src/widgets/AttributeTable line 933 Flex Problem
1120: Access of undefined property CalendarField. AttributeTableWidget.mxml /arcgis-viewer-flex/src/widgets/AttributeTable line 883 Flex Problem

etc


It sounds like I am missing some library files. Strange thing is I had the file running with flex api 3.3 but our client uses api 3.1 so I changed the flex api, but now when I revert back to flex api 3.3 I still get these errors. If you could provide me any suggestions as to how to resolve these issues, I would appreciate it a lot.

Regards,
Deewen

FV 3.1 help files

$
0
0
Since every single link that I click on refering to any FV 3.x takes me to the 3.3 page (the only other option I can find is for 2.5), how does one find the help documentation for FV 3.1 now?

For that matter, any verions other than 2.5 or 3.3?

Thanks,

R_
Viewing all 2097 articles
Browse latest View live