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

eTime and Popups

$
0
0
I'm trying to find out if popups work in conjunction with the time/eTime widgets. My time enabled map service has 2 layers. One is a raster layer and one is a point layer. When I run through the time slider, the rasters display correctly, however, if I click on a point it pull the data for all 24 hours of data, rather than the current hour from the time slider.

Is this the expected behavior? Does anyone know how to force it to only popup the current interval data similar to the behavior of ArcMap?

Flex Viewer 3.4 issue with Map Service Labeling

$
0
0
I've created a Zoning Service that has 4 Layers. My Streets Layer labels just fine but my Address labels do not show up in my Flex application. I can see them when I preview my Service when I create it in Desktop, but not when I add it to an .mxd or Flex Viewer. My Rest/Services shows them as being labeled under Drawing Info: Labeling Info. Any ideas.

ArcGIS Server 10.1 sp1, Flex Viewer 3.4

http://maps.palatine.il.us/apps/zoning_map/

Custom widget in 3.4 not working in Chrome

$
0
0
Hello,

I've been using the App builder 3.1 with a custom geoprocessing widget that was designed and compiled for use on 3.1.

I installed the 3.4 app builder, created a copy of the project that includes this custom widget and then upgraded the copied version to 3.4 via the app builder. It looks as though everything upgraded fine when viewing in the app builder preview.

Then I loaded the custom widget's mxml and xml into flash builder (sdk 4.6), ran the debug and built the swf with no errors. I replaced the swf and xml in the inetpub folder of the copied app builder project and associated widgets folder.

The quirk is that everything looks to have worked when viewing in Firefox and IE, but the app won't load at all in Chrome now. The screen remains white and the clock freezes. If I remove the custom widget in the app builder project, the app will load so it looks as though there's some type of conflict on why it won't render.

Any thoughts?

Thanks in advance!!

Title Change in Flex Application.

$
0
0
I recently change the title of a Flex map in Application Builder by using the design tab and then going to title and fonts and then saved it. The changes show up in the preview tab but not when I open the map in a browser. What am I doing wrong?

GP tool - point input problem

$
0
0
Flex Users,

I have successfully created and published GP tool and it works perfectly when I run the server version of it on my desktop. The tool is not anything special: take the user input point feature + transform the point + append it a o GDB. But on my Flex App user have to add at least TWO POINTS before executing the tool in odder to achieve the result. It really annoys me a lot. I have created additional different GP tools which do something else with point inputs but always - Flexx App needs at least two points in order to generate the result.

What is wrong? After executing the tool with one inserted point the tool executes without any errors but does not give the result.

Thanks,
B.

Navigation Widget Maximum Zoom

$
0
0
I have two Flex viewer applications- one has a maximum zoom in scale of
1:2,257 and the other is 1:1,128.

( the 1:2,257 was done using application builder while the other one was compiled using Flash Builder)

I have my own basemap I would like to zoom in to and I was wondering how do I make it able to zoom in closer, say 1:800 using Flash Builder?

Can someone advise me on how to do it? I am more of a "configurer", don't have much Flex programming background.

Thanks in advance!

Maisarah

P/s: Building Flex Viewer 3.3.....

Web service Database

$
0
0
Am new to flex arc gis flex viewer 3.4, I want to build a widget to read data containing coordinates from a non spatial database and display it on map, I can build a web service to read from the database using C#, do i need to build a widget scratch and how?? or if there is a ready made widget template for such cases.

URL link encoding

$
0
0
Hi,

is there a way to prevent Flex Viewer to encode URL address in pop-up window?

PNG32 setting for transparency resets in config.xml after save in FlexViewer

$
0
0
Transparency is enabled with PNG32 but resets to PNG8 after changes or save in the Flex Viewer. Any ideas on why the config.xml basically reset to default PNG8. Very frustrating to make minor change in the web map and to have to go back and change the png8 to png32 every time. I have made changes to the config.xml like just moving a widget to open in a different location and that setting has stayed in place. Any info would be appreciated.


Thanks,
Edgar Navarrette
City of Odessa

User-defined Layer Definition

$
0
0
I am trying to create an application where a user can define the layer definition for a map service. I can it get it work if I add the layer in the action script, but I would really like to apply the layer definition to an existing map layer. Here is the code that works (adds a layer and applies the query):

Code:

private function PerformQuery():void  {
                                                       
                                        var dLayer:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer("http://apdpdgismap01:6080/arcgis/rest/services/GISDPD01/CrimePart1_28Days/MapServer");
                                                map.addLayer(dLayer);
                                                dLayer.visible = true;
                                        //var dLayer:ArcGISDynamicMapServiceLayer = map.getLayer("CrimePart1_28Days") as ArcGISDynamicMapServiceLayer;
                                                dLayer.name = "CrimePart1_28Days"
                                            var layerDefs:Array = new Array();
                                                var layerStr:String = new String();
                                                layerStr = "DIVISION = '" + Offense.text + "'"
                                                layerDefs[0] = layerStr;
                                                dLayer.layerDefinitions = layerDefs;
                                                dLayer.refresh();
                                }
                    ]]>
    </fx:Script>
    <viewer:WidgetTemplate id="DPD_Crime_Data"
                          width="300" height="300">
        <viewer:layout>
            <s:VerticalLayout horizontalAlign="center" verticalAlign="middle"/>
        </viewer:layout>

        <s:Label id="lbl"
                width="100%"
                fontSize="18"
                fontStyle="italic"
                fontWeight="bold"/>
                <s:TextInput id="Offense"
                                        width="100%" />
       
                <s:Button label="Query Crime" click="PerformQuery();"/>
    </viewer:WidgetTemplate>
</viewer:BaseWidget>

I can't get the layer definition to work using an existing layer. Here is the code that doesn't work:

Code:

 
private function PerformQuery():void  {
                                                       
                                        //var dLayer:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer("http://apdpdgismap01:6080/arcgis/rest/services/GISDPD01/CrimePart1_28Days/MapServer");
                                                //map.addLayer(dLayer);
                                                //dLayer.visible = true;
                                        var dLayer:ArcGISDynamicMapServiceLayer = map.getLayer("CrimePart1_28Days") as ArcGISDynamicMapServiceLayer;
                                                dLayer.name = "CrimePart1_28Days"
                                            var layerDefs:Array = new Array();
                                                var layerStr:String = new String();
                                                layerStr = "DIVISION = '" + Offense.text + "'"
                                                layerDefs[0] = layerStr;
                                                dLayer.layerDefinitions = layerDefs;
                                                dLayer.refresh();
                                }
                    ]]>
    </fx:Script>
    <viewer:WidgetTemplate id="DPD_Crime_Data"
                          width="300" height="300">
        <viewer:layout>
            <s:VerticalLayout horizontalAlign="center" verticalAlign="middle"/>
        </viewer:layout>

        <s:Label id="lbl"
                width="100%"
                fontSize="18"
                fontStyle="italic"
                fontWeight="bold"/>
                <s:TextInput id="Offense"
                                        width="100%" />
       
                <s:Button label="Query Crime" click="PerformQuery();"/>
    </viewer:WidgetTemplate>
</viewer:BaseWidget>


This is how the layer is added in the config file:

<layer label="CrimePart1_28Days" id="CrimePart1_28Days" type="feature" visible="true" alpha="1.0"
                  url="http://apdpdgismap01:6080/arcgis/rest/services/GISDPD01/CrimePart1_28Days/MapServer/0"/>
        </operationallayers>

The layer does appear on the map, but nothing happens when the layer definition is applied.

I am a FLEX newbie, so any insight would be appreciated.

Jon Barlett
GIS Analyst
Dallas PD

Sub-layer Transparency in Dynamic Layer

$
0
0
Hi, I need to have one of my dynamic sublayers transparent and what I did was as below (id="1"), but nothing happened. What is the correct way to do it?



Code:


<layer type="dynamic" label="State" imageformat="png8" url="http://localhost:6080/arcgis/rest/services/State/Test/MapServer" visible="true">
                <sublayer id="2" popupconfig="popups/PopUp_11.xml"/>
                        <sublayer id="1" alpha="0.20"/>

                <sublayer id="6" popupconfig="popups/PopUp_21.xml"/>
                <sublayer id="5" popupconfig="popups/PopUp_31.xml"/>
                <sublayer id="4" popupconfig="popups/PopUp_41.xml"/>
                <sublayer id="3" popupconfig="popups/PopUp_51.xml"/>
                <sublayer id="1" popupconfig="popups/PopUp_61.xml"/>
                <sublayer id="0" popupconfig="popups/PopUp_71.xml"/>
            </layer>


Thanks in advance! :-)

Maisarah

mailto: and need for email obfuscator assistance

$
0
0
Hello,

I'm using the 3.4 Application Builder and have familiarity with changing the config.xml and individual widget xml, but a novice at getting into the mxml and action script.

The first item I'm attempting to tackle is creating a mailto: that does not open another browser window. Right now I use the StaticImage widget to accomplish this task since it allows me to enter a linkurl and tooltip.

<linkurl>[myemailaddress@gmail.com]</linkurl>
<tooltip>Contact Us</tooltip>

However, the browsers open both a window and the email application where I'd like to eliminate the browser popup. I'd just like to have an icon on the web app's main page in the lower left corner when clicked opens Outlook or their email application. Thoughts?

The second item came about as I was researching solutions for this and I ran into this site: http://www.addressmunger.com/

Is this necessary to avoid increased spam? If so, the obfuscator is written for typical html pages and uses javascript. Is there a way to use this or something similar in the flex environment?

Thank you!

Hit Counter

$
0
0
Does anyone have any advice on how to add a hit counter to a flex viewer application?

Attribute Table Widget - remove the export option

$
0
0
hi,

I try to remove the export option ("export the attibutes to a csv file") of the AttributeTableWidget (flex 3.5).
Can someone help me, please?
Is something to remove in the AttributeTableWidget.mxml ?

Vincent
Attachment 28868
Attached Thumbnails
Click image for larger version

Name:	ATW_3.5.png‎
Views:	N/A
Size:	14.9 KB
ID:	28868  

Search widget Flex Viewer 3.5 Search by Attribute default

$
0
0
How can I get the search widget to open with and default to 'Select by Attribute' (text search) instead of 'Select Features' (spatial search)?

ArcGIS viewer for flex 3.5

ESearch Question

$
0
0
I'm trying to create a filter on the esearch fixed datagrid. The filter is using an array collection. I have everything working correctly but I can't seem to find the dataprovider that is populating the results datagrid. Here is my code in the SearchWidgetFixedDataGrid.mxml:

<components:SearchBar searchListCollection="{}" dataGrid="{resultsGrid}" />

Does anybody know where the dataprovider variable is located?

Thanks

Manage attachments with editor delete missing

$
0
0
Hello,
I am using Application Builder Version 3.5.

When I try to manage attachments, I do not get an option to delete. I am pretty sure in previous versions there was a red X listed by the file. In my system I have no red X so I can not delete an existing attachment. Any one else run into this bug? Attachment 28903 here is what the attachment window looks like when in edit mode.

Thanks for looking.
Attached Thumbnails
Click image for larger version

Name:	attachmentedit.JPG‎
Views:	N/A
Size:	161.9 KB
ID:	28903  

How do you print Advanced high-quality printing on secured services?

How add subclass for widget lists+flex+rscheitlin

$
0
0
Hi rscheitlin

I,m looking a solution for adding a subclass for widget's list. for example I have a main class for "Spatial Analysis" widgets, in my header, after that there is a subclass with 3d analysis name and 3d analysis divide to 3 other subclass(volume, slope and hillshade). A graphical example is here:



I know widget group just make a vertical subclass. but I need more subclass(horizontal).

please help me.
Regards

Display attributes of Mosaic Dataset in Flexviewer

$
0
0
Good Morning,

I have a mosaic dataset containing 25 raster dataset. I publish it as image service. And then I want to view that in ArcGIS Viewer for Flex. How can I access to attribute table of my mosaic dataset? Thanks!

-YL
Viewing all 2097 articles
Browse latest View live