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

ArcGIS Viewer 3.6 for Flex released Tuesday December 17, 2013


Display polygon results on the map using Enhanced Search Widget

$
0
0
Is there a way to make local level polygon search results show up at a statewide scale? When I search for features statewide (like buildings for instance), I can only see the selection result polygons if I zoom in past its spatial reference scale. Even if I increase the outlines to enormous widths. Is there some other setting I can play with to try to make those polygon features visible statewide, or am I going to have to create a point layer of those features for searching statewide?

3.6 and selection lines

$
0
0
I read the following line in the release of 3.6:

"Query and Search widgets now have support for line symbology on polygon features. Search widget now supports setting symbology per layer’s results."

Does this mean that when a polygon is selected, it can show a line graphic instead of a polygon graphic? If so, this would solve the issue where the selection graphics (despite being transparent) cover up annotation below it when printing. (though this may be a fault in the Advanced Print SOE widget - I'm not sure if this happens in the relatively new built-in print widget as I haven't tried it out yet)

Robert, will this be implemented in your eSearch?

It might be time for me to update from 3.0!

Help on basic popup config

$
0
0
Hello,

I am with arcgis server 10.0 and flex 2.5, quite a new user.

I have a mapservice that works well, and was able to add the identify widget to get information on the objects. I would like to replace this by popups : instead of using Identify, I would like to be able to click on the map (on a line for instance) and get a window that displays a field of my layer.

I am not able to make the popup work, nothing happens with what I have now, despite all the topics I checked on that subject, I cannot understand the process of the congif for popup. Do I have to specify the code of the layer I want to use information from? This is not clear for me.

If you ever have time to take a look, here are the configs I have:

config file :
<layer label="Mapservice" type="dynamic" visible="true" alpha="0.7" url="http://server/arcgis/rest/services/Mapservice/MapServer"
popupconfig="popups/PopUp_eligibilite.xml"/>

popup config file:
<configuration>
<title>{Résultat}</title>
<fields>
<field name="RESULTAT" alias="Résultat" visible="true"/>
</fields>
<medias>
<media type="image"
title="Resultat"
imagesource="assets/images/i_bookmark.png"/>
</medias>
<showattachments>true</showattachments>
</configuration>

Hope somebody will be able to help! Meanwhile I keep looking,

thanks

Anne

Popup with Attribute data and Image

$
0
0
I'm trying creating a simple single feature class flex map that will display a pop up window with attribute data and an image in the same window. Basically the same functionality as a feature class with attachments in arcmap when you use the HTML popup tool. I have everything set up properly in Flex application builder but the image only appears as a link in the window. Can anyone give me a push in the right direction?

Save layer visibility preferences - flex code question

$
0
0
Hi,

I am trying to add some functionality to the TOC widget so that users can save which layers they have turned on and reload those settings later. I have had some success but have come up against a problem that I think others have experienced, but I cannot find an answer on the forum and the posts I've seen are quite old.

I seem to be able to save the layer visibility. However, when I come to load this back in I am struggling with group layers.

For example, if I save the layers below:
Attachment 29970

It reloads like this:
Attachment 29971

The "pointsInAGroup" features within "aGroup" are actually visible in the map but this is not reflected in the TOC.

Is it possible to force the checkboxes to update correctly?

My two functions that save/load the layer visibility are:

Code:

private function saveLayers():void
                        {
                                visLayersSO = SharedObject.getLocal("SavedPrefs");
                                visLayers = new ArrayCollection();
                               
                                MapUtil.forEachMapLayer(map, function(layer:Layer):void
                                {
                                        var visLayersList:IList;
                                        if (layer is ArcGISDynamicMapServiceLayer)
                                        {
                                                visLayersList = ArcGISDynamicMapServiceLayer(layer).visibleLayers

                                                var visLayersObj:Object =
                                                {
                                                        name: layer.name,
                                                        visible: layer.visible,
                                                        vislist: visLayersList
                                                }
                                                                                                visLayers.addItem(visLayersObj);
                                        }
                                       
                                });
                               
                                visLayersSO.data[VISLAYERS] = visLayers;
                                visLayersSO.flush();
                                if (visLayersSO.size > 0)
                                {
                                        Alert.show("Your layers have been saved.")
                                }
                        }                       


                        private function loadLayers():void
                        {
                                        visLayersSO = SharedObject.getLocal("SavedPrefs");
                                       
                                        if (visLayersSO.size > 0)
                                        {
                                                var visLayers:ArrayCollection = visLayersSO.data[VISLAYERS];
                                               
                                                MapUtil.forEachMapLayer(map, function(layer:Layer):void
                                                {
                                                       
                                                        var LayId:int = 0;
                                                        for(var i:int=0; i<visLayers.length;i++)
                                                               
                                                        {
                                                                if(visLayers[i].name == layer.name)
                                                                {
                                                                        LayId = i;
                                                                        break;
                                                                }
                                                        }
                                               
                                                        if (layer is ArcGISDynamicMapServiceLayer)
                                                        {
                                                                layer.visible = visLayers[LayId].visible;
                                                                ArcGISDynamicMapServiceLayer(layer).visibleLayers = visLayers[LayId].vislist;
                                                        }
                                                       
                                                });
                                        }
                        }

Attached Thumbnails
Click image for larger version

Name:	Capture1.PNG‎
Views:	N/A
Size:	9.2 KB
ID:	29970   Click image for larger version

Name:	Capture2.PNG‎
Views:	N/A
Size:	9.1 KB
ID:	29971  

What are general steps to update src code and api? 3.5 to 3.6 for example

$
0
0
Hello,

I feel like I'm going about my updates in the most inefficient manner possible and wanted to know how others update from one version to the next.

I use many of Robert's widgets and then have a few custom ones in flash builder. Every new release I start by importing into a new flex project the new src code, then the api .swc, a couple skins from the api folder and then bring in my old widgets as modules into the new project. Do others do something that may shave off some steps?

Thanks,
Arthur

compiled file edits not reflecting in viewer

$
0
0
After a Server 2008 R2 upgrade to Server, ArcGIS Server 10.2 lost some functionality and has slowly been restored.
Services are fine, Flex Viewers work, although, when edits are applied to the .xml files for viewers, they are no longer reflected.
Data edits are updated, just not the viewer functions.

Updated Widgets for 3.6

REST Service security and Flex web map

$
0
0
I have inherited a couple "unsecured" rest services that are accessible through a public facing URL. They are part of an unsecured, public facing Flex web map application. It turns out that internet trolls are connecting to the rest service at night and basically pulling down the data, others are using it in the own maps without permission.

I am not a flex guy. Can folks make some recommendations? What is the easiest way to make the REST data available and unencumbered to the public through the Flex app, yet make it impossible or very difficult for some crafty folks to sleuth the raw data from my REST end point directly?

If possible, please point me towards some type of document or example as I am learning all of this as I go. Thank you!

Chart Widget - piechart

$
0
0
Is there a way to combine multiple point features into one class/type, so that the piechart indicates the comined percentage?

In other words, I would like to select an area on the map and have the piechart combine all #2's, #4's, #6's and display a percentage for all like features instead of a percentage for each point selected.


I'm working with a feature file with hundreds of points and each point has a number between 1 and 10.


Flex 3.5


Thanks,

Jaime

3.5 to 3.6 now no map switcher

$
0
0
I just upgrade from 3.5 to 3.6 and now I noticed that when I open the map in a browser the map switcher is gone, but still there in the preview tab in the app builder. Anyone else have this problem?

How to delete logo

$
0
0
I added a logo and now would like to remove it. How do I do this?

Missing Remove Results icon in Identify Widget results box

$
0
0
I am using the Identify Widget (3.4.2) and having a small problem. In my results window, the icon for remove results Attachment 30045 is not showing. The icon (i_remove_info.png) is in the correct folder ($\widgets\Identify34\assets\images). I have verified the permissions are correct on all the containing folders and the png file itself. Plus the i_info.png icon is showing so it seems like the path and permissions are correct.

I have looked through the IdentifyWidget.xml and meta.xml files, and cannot find reference to the icon. I also checked the 'stock' xml files and see it is not mentioned in those files. Any ideas on the cause or more info needed?

Is there supposed to be a reference to it, something like <removeresulticon>”assets\images\i_remove_info.png”</removeresulticon>

Example below of the icons missing from a results window.
Attachment 30046
Attached Thumbnails
Click image for larger version

Name:	no remove icon.png‎
Views:	N/A
Size:	48.9 KB
ID:	30046  
Attached Images
 

AttributeTable Widget Comes Up Blank - White

$
0
0
I have a 3.4 version of the Flex Viewer deployed and occasionally the Attribute Table widget comes up completely blank (e.g just a white screen). With some users this seems to repeatedly happen, but for me it only happens 5% of the time. I'm not sure what is causing it. In this case the test viewer is always the same configuration file. I have watched the user load it on their side and then have it come up blank, I have then loaded on my PC 30 seconds later and it is good. I then had the user load a 3.5 version of the viewer with the attribute table and they could see it (ie it wasn't blank). I attempted to read through the GitHub fixes and didn't see this identified so I thought I would check, before investing a bunch of time to roll up the viewer to the latest version.

Thanks and Merry Christmas!
Frank

AttributeTable Widget export cvs file chinese characters are garbled

$
0
0
My table has some chinese characters, and display normal in Attribute table. But exported to cvs file, chinese characters are garbled. How can I fixed it?

How disable geoprocessing message?

$
0
0
Hi
I want to disable geoprocessing message. for example if a geoprocessing service return an error, I dont like to show this error for users. What should I do? please help me.
Regards
A.ponker

Formatting Fields in Attribute Widget

$
0
0
I can not format the fields in the Attribute Widget. However, the same dataset, I can do formatting in the pop up widgets. In the Attribute widget, only the the DATE type field can be formatted ( with the pencil icon ).

I tried manually adding in the precision property in the field tag in the xml ( using pop up widget as reference ) to no avail.

I also tried changing the property of the field in the mxd and re-publishing the service but no effect.

Actually, not all records are affected. I tried editing the field and re-entering the value, but still no effect.

Dataset is in ArcSDE Enterprise Geodatabase ( Oracle 11g) and ArcGIS Server 10.2 in Windows 2008 Ent and ArcGIS Viewer for Flex - Application Builder 3.6

thanks.

Label display problem with Shapefiles Widget version 3.6

$
0
0
Dear Robert:
I'm using your Shapefiles Widget version 3.6, and find an issue with label display on the map. I choose "NAME" as the label field and the value of "NAME" is Chinese character in my test shapefile. In the end, as you see in the picture, the label is garbled.Looking forward to your help to fix it.Thanks a lot.

Attachment 30306


////////////////////////////////////////////////////////////////////////////////////////

Well, after some efforts, I have this issue fixed by :
change
values[field.name]=src.readUTFBytes(field.length);
to
values[field.name]=src.readMultiByte(field.length,"utf8");
in DbfRecord.as.
Attached Thumbnails
Click image for larger version

Name:	2014-01-07_172841.jpg‎
Views:	N/A
Size:	21.9 KB
ID:	30306  
Attached Files

modification of esearch widget

$
0
0
Hello all,

I am currently using esearch widget the latest version (3.6) and trying to modify it based on my needs but I am having difficulties in modifying it. Is there any one who know how to search from multiple layers using the current esearch widget? For example, let us assume that we have two layers, one of them is city and the other one is district. How can we have a drop down lists of cities then when we select specific city, the district layer list appear containing only districts for the selected city. So that we can select any of the district to show it on our map and see the information. So generally, is it possible to work on multiple layers in the esearch widget like this case? If so, how?

I will be thankful to get some hint.

cgeers,
Beza
Viewing all 2097 articles
Browse latest View live