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

Add identify button to navigation widget

$
0
0
All,

I am trying to add an icon to the navigation widget that opens up the identify widget, i.e:

Attachment 20812

I have managed to do this by adding the following to the navigation.mxml:

in the array collection for the images added:
Code:

<s:ArrayCollection>
<fx:Object action="pan" imageIcon="assets/images/i_pan.png" label="{LocalizationUtil.getDefaultString('panLabel')}"/>
<fx:Object action="zoomin" imageIcon="assets/images/i_zoomin.png" label="{LocalizationUtil.getDefaultString('zoomInLabel')}" visible="false"/>
<fx:Object action="zoomout" imageIcon="assets/images/i_zoomout.png" label="{LocalizationUtil.getDefaultString('zoomOutLabel')}"/>
<fx:Object action="identify" imageIcon="assets/images/i_identify.png" label="Identify" />
</s:ArrayCollection>

and then changed the doNavAction function to the following:

Code:

private function doNavAction(action:String, label:String):void
{
  var data:Object =
  {
      tool: action,
      status: label
  }
  if(data.tool == "identify")
  {
      AppEvent.dispatch(AppEvent.WIDGET_RUN, ViewerContainer.getInstance().widgetManager.getWidgetId("Identify"));
      AppEvent.dispatch(AppEvent.SET_MAP_NAVIGATION, {tool: "Pan",status: "Pan"});
  }
  else
  {
  AppEvent.dispatch(AppEvent.SET_MAP_NAVIGATION, data);
  }
}

This opens up the identify widget as expected and sets the map navigation back to pan, but unfortunatly it does not change the selected icon to the pan icon, how can I represent a mouse click on the pan icon using code,

Regards

Anthony
Attached Thumbnails
Click image for larger version

Name:	navbar.png‎
Views:	N/A
Size:	34.1 KB
ID:	20812  

Export Map Widget for Flexviewer 3.1

$
0
0
Great Great tool to kick out a Jpg!!

I noticed you can turn on/off the esri logo using the

Code:

<maplogovisible>false</maplogovisible>
Is it possible to specify an additional graphic to be included in the export as well?


ALTERNATIVELY, is it possible to replace the "powered by ESRI graphic" in another location?

Trying to replace it with this graphic:

Search widget results not showing up in 3.1 attribute table

$
0
0
I've checked the box for "Add results as operational layer", and as expected, the results from a search are shown in the legend, layer list, and a tab is added for the results layer in the attribute table. However, the attribute table is blank with no records or fields. The results in the search widget are visible and there parcels selected. I've attached a screenshot to help illustrating what I'm experiencing.

Attachment 20817
Attached Thumbnails
Click image for larger version

Name:	Capture.jpg‎
Views:	N/A
Size:	118.7 KB
ID:	20817  

eSearch widget and Dynamic Legend issue

$
0
0
I am using the eSearch Widget (v3.1.4) and the Dynamic Legend v3.1. The viewer opens with a URL selection made in the eSearch Widget, and the Legend shows all the operational layers. If I clear the initial selection and choose a layer to search from the dropdown menu in the eSearch Widget and then make a new selection, the Dynamic Legend redraws the symbology. *see attached images*

Attachment 20818 Attachment 20819 Attachment 20820

The first image is how the Legend should look, the second is after a new selection is made with eSearch, the third after yet another new selection is made. If I continue to make new selections without refreshing the map, the legend will continue to add the symbology of the layer searched, over and over. What I need is for the Legend to not keep adding the same layer, if it's already there, to the Legend if a search is performed in the eSearch Widget. I can use the "out of the box" legend, but I much prefer the dynamic legend, as it's been much easier to customize the look of.

Help?

(I'm working with the uncompiled code for both widgets.)
Attached Thumbnails
Click image for larger version

Name:	1-17-2013 3-42-48 PM.png‎
Views:	N/A
Size:	9.2 KB
ID:	20818   Click image for larger version

Name:	1-17-2013 3-43-13 PM.png‎
Views:	N/A
Size:	11.0 KB
ID:	20819   Click image for larger version

Name:	1-17-2013 4-05-52 PM.png‎
Views:	N/A
Size:	8.8 KB
ID:	20820  

eSearch 3.1.4 Export Data Grid Results Issue

$
0
0
I have just upgraded to 3.1.4 of the eSearch widget. I am encountering an issue where the data grid results do not export. I can choose either the csv or txt format and then click on the "Export" button, but nothing happens. This also happens when testing the previous version I used - 3.1.2.

I am also encountering slow response when closing the data grid window - probably a 3-5 second lag between the time I click the "X" and when the window actually closes. I have tested on large and small results sets.

Any help is appreciated.
Thanks
Eric V
Gurnee, IL

Print A Form

$
0
0
I am trying to get the text on the pages I print to move. I want the text to be centered and below the map. I have tried manipulating both the print widget from 3.1 and 2.5, with no luck. I just want to have an area below the printed map that will have a list of information for our work crews. This would be a great help, thanks in advance.

Dynamic Legend 3.1.1 and Error 2036

$
0
0
To All Flex Viewer Application Developers:

I have a Flex Viewer 3.0 application that I tried to add the compiled Dynamic Legend v3.1.1 widegt to, but I received Error #2036.

Does this latest compiled Dynamic Legend not work with a Flex Viewer 3.0 build?

Any help or hints are greatly appreciated.

Identify Widget 3.1 Date Field Questions

$
0
0
I have overlapping polygons that i'm trying to use the identify against. All of the polygons are in the same map service and same layer. The example is i have overlapping polygons of sales for each property going back a few decades. When i do an identify the text and number fields return the correct information but the Date fields are returning the same date for all dates of 12/31/1969. I can turn on the popups i have configured for it and the information is displayed correctly with the date information also updating per polygon. I've also tried commenting out the popups to see if that would change the results but they still do it. On other layers i have polygons with dates in different map services they return correctly and they are not time enabled. It appears to only happen when they are overlapping and time enabled.

The layer is time enabled and i'm using the latest eTime Widget. i've tried both true and false on the <usemaptime> with the same results.

Using:
ArcGIS Server 10.11
FlexViewer 3.1
SDK 4.6

Anybody else run into this?

eSearch Widget Graphical Results

$
0
0
I would like to have the graphical results listed in the order of selected by user for export.
Can anyone point me to the section of code to edit or provide info?

POPUP Next and Previous buttons

$
0
0
Does any one know where these controls can be customized? I don't see them in the PopupRenderSkin or the InfoWindowSkin. In particular I'm trying to listen to the click event of either of these buttons so that I can run some custom code.

Thanks

AttRelateInfoWinWidget 3.0 just won't fire....any help appreciated.

$
0
0
For some reason I just can't get the AttRelateInfo to fire when clicking on my Parcels.
I have a property viewer with parcels, and I was hoping to be able to click on a parcel and view some basic attributes along with an image of each property. But when I click a Parcel, nothing is happening...I have this working in internal property viewers, but this one just won't go. Anyone see what I'm missing??

http://www.banffmaps.ca/Property is the name of the viewer.

Here is an exerpt from my config file:

<layer label="Parcels" type="feature" visible="true" alpha="1.0"
info="widgets/InfoTemplates/AttRelateInfoWinWidget.swf"
infoconfig="widgets/InfoTemplates/IWT_BanffParcels.xml"
url="http://www.banffmaps.ca/ArcGIS/rest/services/Property/Property/MapServer/9"/>

Here's my IWT_BanffParcels.xml file:

<?xml version="1.0" ?>
<configuration>
<fields>Full_Address,Perimeter,Acres,Hectares,ROLL</fields>
<titlefield></titlefield>
<links>
<linkfield icon_or_text_or_img="img" icon="" linkalias="Property Photo"
linkprefix="http://www.banffmaps.ca/Property/assets/images/PropertyPhotographs/" linksuffix=".jpg">ROLL</linkfield>
</links>
<layername>Parcels</layername>
<datefields></datefields> <!-- field in milliseconds -->
<zoomscale>2000</zoomscale>
<csvseparator>,</csvseparator>
<labels>
<csvdefaultname>Related Records</csvdefaultname>
<exportbtnlabel>Export...</exportbtnlabel>
<export2csvoptionlabel>Export to CSV...</export2csvoptionlabel>
<export2txtoptionlabel>Export to Txt...</export2txtoptionlabel>
</labels>
</configuration>


Thanks for any suggestions
Steve

Re: Identify Widget 3.1

$
0
0
Quote:

Originally Posted by Chall79 View Post
Robert,

If I may be so bold, can the drop down box for layers in the widget be narrowed to only show "all layers" and not individual layers listed? I'd like to modify the results of the identify with field alias' and such but I don't want the user to select which layer. Sorry to change the direction of the thread.

Thanks
Chad

Chad,

If you have the source code you can remove the layers out of the list except for All Layers. However, it looks like the easiest way it to just hide the dropdown list and in the identifywidget.xml set <layers onlythese="false">. This will get you what you want.

To hide it, in the IdentifyWidget.mxml, near the bottom in the wtemplate, make the following change:

Code:

                        <s:Label id="txtLabel"
                                        width="100%"
                                        text="{descriptionLabel}"
                                        textAlign="center"/>
                        <s:HGroup gap="12" verticalAlign="middle">
                                <s:Label id="idfromlbl" text="{idFromLabel}" />
                                <s:DropDownList id="ddMapService"
                                                visible="false"/>
                        </s:HGroup>



R_

How change " returnZ flase" to true?

$
0
0
I,m using Geoprocessing tool (ArcGISServer 10.1) and flex3. I have this error in my arcgisjob directories: "Geometry can not have z values". How can I change "returnZ false" to "returnZ true"? or other solutions?

Load own content shapefiles in Flex Viewer

$
0
0
Hi,

I am new to Flex Viewer and I want to create my first map using a OSM background and some shapefiles as operational layers. I uploaded the first shapefile to arcgis.com (my content) and shared it to everyone: (http://www.arcgis.com/home/item.html...8e3e8d9165e6b0).

Now, why can't I access this shapefile from Flex Viewer. Am I missing something?

Thanks,
Andrei

identify widget 3.1

$
0
0
I am using the identify widget for a layer that is used as a map and a feature layer. When I use the identify widget I am getting 2 results for eah record. Is there a way to exclude one?

Print Widget not working for layers that require a proxy url

$
0
0
Using the Viewer for Flex Application builder 3.1, I've added a couple of operational layers that require a proxy. These display fine, but the print widget generates an error. When using the print widget, the "Web Map as JSON" that is generated does not include the proxy url before these operational layers. The Viewer reports: "RPC fault, failed to create layer from service at....". When I test at the REST endpoint, I can take the JSON generated by the print widget and just add the proxy url before service url and everything works splendidly.

Is this a bug with the Application builder, or am I missing some configuration option for the print widget to tell it to use the proxy? I see some other widgets that have a proxy checkbox, but don't see that with the print widget.

Thanks in advance,
Sebastian Roberts

Legend Widget not Refreshing

$
0
0
I am running ArcGIS Server 10.1 SP1 and ArcGIS for Flexviewer 3.1. I have a testbed Flex mapping application at maps.nwifc.org:8080/test_x. The Legend Widget is described as showing only those service layers that are visible at the time of viewing. Thus when a service is within its visible scale range the legend displays it and doesn't when it is beyond its visible scale range. This behavior statement seems to be upheld when only the scale dependent service is turned on; when additional layers are also turned on the legend does not update unless the scale dependent service is cycled off/on for any given map scale. The test map has three dynamic map services: County (polygon, visible at all scales), Offices (three points visible at all scales) and WRIA/WAU (two feature layers WRIA and WAU, with the WAU only visible once zoomed in beyond 300,000). Turn off county and offices and the legend updates appropriately for WRIA/WAU as you zoom in or out. Turn on either/both County and/or Offices and the legend does not update as you zoom in or out. This problem exists regardless of public or private publication. The behavior holds true across all my maps with scale dependent layers (over 10 map applications). The map above is just a test map app to demonstrate the problem. Any solutions or ideas out there?

How to set MapRotation in FLexViewer 3.1

$
0
0
Hi all,

I've downloaded the arcgis api for flex 3.1 (uncompiled), and the arcgis viewer flex 3.1 (uncompiled).
And I'm working with Flash Builder 4.6.

I am trying to set map rotation on my source code for FlexViewer. How can I do that?
On my index.mxml I am getting errors.

Thank you

Misc questions on the builder evolution

$
0
0
Hello,

Here's a few questions on the evolution of the builder :

- Any plan to manage widget groups within the builder (as this is currently possible in the XML configuration file) ?
- Any plan to allow for widget positionning within the builder (as this is currently possible in the XML configuration file) ?
- Any plan to implement configuration GUI for widget within the Builder instead of XML editing (ie same as standard widgets) ?
- Any plan to release the Builder code on Github as you did with the Viewer ?

Thanks,

Christophe

. as thousand separators and , as decimal point in Enhanced Draw Widget?

$
0
0
Hi hi,
since i am located in Europe I would like to have points as thousand separators and comma as decimal points, is this possible using Enhanced Draw Widget??


here is my application:
http://atlas.lmi.is/is50v/
Viewing all 2097 articles
Browse latest View live