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

Add executable icon to header area

$
0
0
Currently I have a widget that allows users to display certain map layouts. All it basically does is turn layers on/off programmatically based up which map they want to see (see graphic). I would like to have three icons instead of the widget on the Header. ie: "Zoning Map", "Flood Map", " City Map" that would essentially do the same thing when the icon was clicked. Is this a possibility?

Attachment 20761

Thank you in advance!

Luci
Attached Thumbnails
Click image for larger version

Name:	example.jpg‎
Views:	N/A
Size:	21.0 KB
ID:	20761  

Add copy to context menu

$
0
0
I would like to be able to select some text from a popup infowindow, and be able to right-click on it and copy the text to the clipboard.

Has anyone done this, or know the proper way to make it happen?

I know that you can use <cntrl><c> to copy it, but that is not so intuitive for my users (apparently).

Thanks,

R_

Geoprocessing+flex

$
0
0
I have a model in ArcGIS 10.1 that user should draw a line on the map and model convert it to a 3d line.When I run model by ArcMap every thing is ok, but when I run model by flex viewer, it return this error in the message of arcgisjob:
geometry can not have z values.
what is wrong on my flex viewer 3 or geoprocessing?
Regards
A.ponker

Legend Widget showing multiple patches on grouped symbology

$
0
0
I apologize if this has been answered already, but I couldn't find anything in the forums. Just upgraded from 2.x to 3.1 and I'm noticing that when using a service that has a layer with grouped values in it's symbology, that is it's making a duplicate patch for each category. For instance, I have a land use layer that is broken down into over a hundred categories. For the legend, on one group I combine 'Senior High School', 'Junior High School', 'Elementary...', 'College' all into a symbol labeled 'Schools'. But on the widget I'm getting 4 patches all with the same color, all labeled as 'Schools'. Is there any fix for this behavior? This only happens on my 3.1 application and not on the 2.5 application.

Error - Highlight polygon when item roll over on datagrid

$
0
0
I try to highlight a polygon when item roll over on the datagrid and unhighlight it when item roll out. But keep getting error message on onItemRollOut function.
I attached the modify code and message here. Hope someone can give me so ideas.

Thank you.
Attached Thumbnails
Click image for larger version

Name:	esearcherror.gif‎
Views:	N/A
Size:	22.8 KB
ID:	20809  
Attached Files

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

Redirecting of “web server base folder/url” after the installation of Flex,

$
0
0
Redirecting of “web server base folder/url” after the installation of Flex,

At the level of installation of “ArcGIS Viewer for Flex”, we are required to assign the path for the “web server base folder” and for “web server base folder URL” as shown in the screenshot below:

Attachment 20904, Attachment 20905, Attachment 20906

How these two paths can be redirected later?

The uninstalling and reinstalling the “Flex” doesn’t solve this issue! We are not required to specify these two paths in the re-installation process?


Thank you

Best

Jamal
Attached Thumbnails
Click image for larger version

Name:	Clip_4.jpg‎
Views:	N/A
Size:	40.2 KB
ID:	20904   Click image for larger version

Name:	Clip_5.jpg‎
Views:	N/A
Size:	63.8 KB
ID:	20905   Click image for larger version

Name:	Clip_11.jpg‎
Views:	N/A
Size:	101.0 KB
ID:	20906  

Image screen shot

$
0
0
Dear All,

I am facing a problem for pdf page.i

var bitmapData:BitmapData=new BitmapData(map.width,map.height);
bitmapData.draw(map);
var byteArray:ByteArray =jpEncoder.encode(bitmapData);
var page:Page = new Page ( Orientation.LANDSCAPE, Unit.POINT,Size.A4);
fileRefPDF = new PDF(Orientation.LANDSCAPE, Unit.POINT,Size.A4);
fileRefPDF.setDisplayMode(Display.FULL_PAGE, Layout.SINGLE_PAGE);
fileRefPDF.addPage (page);
fileRefPDF.addImageStream(byteArray,ColorSpace.DEVICE_RGB,new Resize(Mode.FIT_TO_PAGE,Position.LEFT),0,0,1150,900,0,1,"NORMAL",null);
the above code for pdf page.my actual height of map is 487 and i want it 900.when i do it in pdf.addimagestream(byteArray,ColorSpace.DEVICE_RGB,new Resize(Mode.FIT_TO_PAGE,Position.LEFT),0,0,1150,900,0,1,"NORMAL",null);
My map image become stretched.there is any way that my image should not stretched n pdf?
Thanks for all in advance.
Waiting for reply.

Searchbox result graphic bug

$
0
0
I'm starting a new thread about this issue since my last thread contained several different questions.
The problem is that the search result graphic sometimes shows up and sometimes it don't (using the searchbox in headercontrollerwidget). When using keyboard arrows and pressing enter for one searchresult in the result list the graphic appear, and if I'm typing a searchterm that only gets one result the graphic appear as well. But when clicking with the mouse on a result in the result list, the info window shows and the map zoom in to the result but no graphic appear.
And according to the other thread I mentioned earlier I'm not alone experience this behavior.

I did some debugging and it seems like when using the mouse and clicking one search result, at first the code runs as expected but then the resultList_changeHandler function is triggered again causing the showSearchResultOnMap function to run again with no searchResult object. So the result graphic is removed and no new graphic is added since the searchResult is null this second time the function is triggered.
I haven't been able to figure out why this happens and how to prevent it yet. Any ideas?

Print 3.1 - Dynamic Layers will not print

$
0
0
I am using the latest viewer source code (3.1). I've made some custom layouts and I can print as long as I turn off all of my dynamic layers. If I use Esri's sample service print url it will print even with my dynamic layers all turned on.

The error I get when I use my own service with my layers turned on is:

Code:

Error executing print task:

[RPC Fault faultString="Unable to complete operation." faultCode="400" faultDetail="Error executing tool."]

I cannot find any issues in Firebug. I have set up my print service following the instructions on esri help and it looks identical to Esri's sampleserver print service.

I do not have any odd layers that I can think of that would prevent the print from working....I am using some custom .png symbology and some transparencies....but that does not explain why the Esri print url has no issue with my layers at all...

Thanks for ANY help!!
Viewing all 2097 articles
Browse latest View live