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

remove close button from a single widget

$
0
0
Hi all,

Is there a simple way to remove just the close button Attachment 23211 that appears in all the widgets. I just want to remove it from a single widget, and is there a simple method instead of creating a new custom widget template? Thank you.
Attached Images
 

HTTP Referer

$
0
0
Hello,

I have a Flex application that I created with security. When I launch the app and the login prompt appears, the login fails because it's attempting to login to the wrong URL. If I go to the token service and specify the correct URL in the HTTP referer, I can generate a token just fine. Is there a way to specify an HTTP referer for the Flex app when logging in?

I am using a web adaptor on port 8080 on the web server, but the front end URL is on port 443 and according to Fiddler, the Flex app is attempting to access the port 8080 site for which I created a binding in IIS.

Thanks,
Igor

Highlight Pan tool on navigation tool bar

$
0
0
If you click to zoom in/ zoom out before identify. How do you highlight "pan" tool on navigation tool bar after identify? So won't highlight zoom in/ out tool and tool already deactive.
Thank you.
Attached Thumbnails
Click image for larger version

Name:	Bar.png‎
Views:	N/A
Size:	36.1 KB
ID:	23217  

Splash widget

$
0
0
I know nothing about code. Nothing. I am creating some flex viewer maps and I would like to have the splash widget stating that we do not guarantee the information contained in the map. Can someone give me a dumbed down idea how to do this?
Thanks

Printing with WMS Basemaps

$
0
0
Hi all,

I am wondering if there are limitations to using the printing gp service with WMS Basemaps?

I receive the following error when I try to print a custom .mxd with the clients WMS as the basemap.

Layer "US:eTOPO Topographic": Failed to create layer from service at http://<server>/streaming/__streaminguid.xxxxxxxxxxxxxxxxxxxxxxxxxxxxx/wms.ashx?. Failed to execute (Export Web Map).
Failed to execute (Export Web Map).

Flex 3.2
Server 10.1.1

Thanks,
PW

Application builder changes my edits of config files!!!!

$
0
0
I am using Application Builder (3.2 with 10.1.1 server) to create and configure the bulk of my application, but every time I go into the config files to change some of the minor stuff that App Builder can't do (position of widgets, pop-up formatting, etc.) and then save in a subsequent session in App Builder, all my changes are lost.

Why does App Builder do this? What exactly does it do when you save? It only changes the stuff on each of the tabs (Maps, Widgets, Layout, etc.)

I am going to keep a list of all the minor changes I make within the config files for implementing after I am done with App Builder, and right before I release new versions of the app. Any other ideas on how to better handle this discrepancy???

Flexviewer's Expand panels

$
0
0
In Flexviewer 3.2, there are 2 expand panels, 1 on the left for Direction and 1 on the bottom for the Attribute table. On left of the About button of the toolbar, there is search textbox. How can I disable them? Thanks.

Parcel search widget

$
0
0
I am very new to flex and have no real experience in xml. I want to configure the search widget to allow a user to search by municipality, block, and lot. I want the display to provide for entry of all three variables. I would also like to have a dropdown for selecting the municipality from a list of 21. I was able to do all of this very simply in the web ADF.

Thanks

Zomm Scale customization

$
0
0
In ESRI's template, there are 20 levels on the Zoom Scale bar. How can it be customized to the desired number of levels (e.g. 12)? Thanks.

Printing to scale

$
0
0
I'm a newbie at Flex. I have created a flex 3.2 map using the Application Builder and I'm using the print widget with the Print with ArcGIS Server option. If a user enters 1200 on the scale so the map will print at 1"=100', it's not printing at that scale at all. Any ideas as to why? I work for a water utility and it's important that users can print to scale.
thanks
Karen

Dynamically change the order of the basemap in MapSwitch

$
0
0
For the basemaps loaded in the MapSwitch control, is it possible to change the loaded basemaps dynamically?

AGOL Basemap Masking Operatioall Layer

$
0
0
Hi folks,

I am using the Terrain with Labels basemap from AGOL in my Flex 3.2 application. Along coastal areas my operational layers are being masked, apparently to create a bathymetry affect, screenshot attached.

Is this a know issue, is there a remedy? Why would the basemap render over the operational layer?

Thanks.
PW

edit: Apologies for the typo in the title, *Operational*, guess you can't edit the title...
Attached Thumbnails
Click image for larger version

Name:	terrain_mask.PNG‎
Views:	N/A
Size:	29.5 KB
ID:	23249  

OAuth with the FlexViewer

$
0
0
At this years Dev Summit, Bjorn did a nice demo of the FlexViewer and some integration he did with OAuth. I think I might have gotten the git hub url incorrect. That or the source isn't there yet. The GIT url had was:

https://github.com/bsvensson/arcgis-viewer-flex/tree/user-logins

I
s this indeed the url?

When I do clone the repo from the above url and then do a source comparison with the out of the box flexviewer repo I see no changes. I believe there should be changes in the ViewerContainer.mxml

Thanks!

Using jpg as link and search results

Update MapManager.mxml in v.3.2 for uniqueValues in feature layers

$
0
0
I'm in the process of updating my mapping application from 2.5 to 3.2. In 2.5 I used the following code in the MapManager.mxml to create different symbology in my feature layers based on field values. I'm trying to determine how to do that in the 3.2 MapManager. Can anyone provide me with the 3.2 code?

In the Import section:
Code:

import com.esri.ags.renderers.UniqueValueRenderer;
import com.esri.ags.renderers.supportClasses.UniqueValueInfo;

In the Private Function section:
Code:

private function addLayerToMap(layerObject:Object):void
            {

...

case "feature":
                    {
                        var featureLayer:FeatureLayer = new FeatureLayer(url);
                        featureLayer.addEventListener(FlexEvent.HIDE, featureLayer_hideHandler);
                        featureLayer.alpha = alpha;
                        featureLayer.id = label;
                        featureLayer.name = label;
                        featureLayer.maxAllowableOffset = maxAllowableOffset;
                        featureLayer.outFields = [ '*' ]; // TODO: be smarter
                        featureLayer.token = token;
                        featureLayer.visible = visible;
                        featureLayer.useMapTime = useMapTime;
                        featureLayer.clusterer = clusterer;
                                                if (label == "NEP FY10 Projects")
                                                {
                                                        var picSymbol1:PictureMarkerSymbol = new PictureMarkerSymbol("assets/images/nepmap-photo-point-fy10_sm.png",18,27,0,0,0);
                                                        var picSymbol2:PictureMarkerSymbol = new PictureMarkerSymbol("assets/images/nepmap-point-fy10_sm.png",18,27,0,0,0);
                                                        var uniqueValuerenderer:UniqueValueRenderer = new UniqueValueRenderer();
                                                        uniqueValuerenderer.field = "PHOTO";
                                                        var uniqueValueInfos:Array = [];
                                                        uniqueValueInfos.push(new UniqueValueInfo(picSymbol1, "Y"));
                                                        uniqueValueInfos.push(new UniqueValueInfo(picSymbol2, "N"));
                                                        uniqueValuerenderer.infos = uniqueValueInfos;
                                                        featureLayer.renderer = uniqueValuerenderer;
                                                }
                                                if (label == "NEP FY11 Projects")
                                                {
                                                        var picfy11Symbol1:PictureMarkerSymbol = new PictureMarkerSymbol("assets/images/nepmap-photo-point-fy11_sm.png",18,27,0,0,0);
                                                        var picfy11Symbol2:PictureMarkerSymbol = new PictureMarkerSymbol("assets/images/nepmap-point-fy11_sm.png",18,27,0,0,0);
                                                        var uniqueValuerendererfy11:UniqueValueRenderer = new UniqueValueRenderer();
                                                        uniqueValuerendererfy11.field = "PHOTO";
                                                        var uniqueValueInfosfy11:Array = [];
                                                        uniqueValueInfosfy11.push(new UniqueValueInfo(picfy11Symbol1, "Y"));
                                                        uniqueValueInfosfy11.push(new UniqueValueInfo(picfy11Symbol2, "N"));
                                                        uniqueValuerendererfy11.infos = uniqueValueInfosfy11;
                                                        featureLayer.renderer = uniqueValuerendererfy11;
                                                }
                                                if (label == "NEP FY12 Projects")
                                                {
                                                        var picfy12Symbol1:PictureMarkerSymbol = new PictureMarkerSymbol("assets/images/nepmap-photo-point-fy12_sm.png",18,27,0,0,0);
                                                        var picfy12Symbol2:PictureMarkerSymbol = new PictureMarkerSymbol("assets/images/nepmap-point-fy12_sm.png",18,27,0,0,0);
                                                        var uniqueValuerendererfy12:UniqueValueRenderer = new UniqueValueRenderer();
                                                        uniqueValuerendererfy12.field = "PHOTO";
                                                        var uniqueValueInfosfy12:Array = [];
                                                        uniqueValueInfosfy12.push(new UniqueValueInfo(picfy12Symbol1, "Y"));
                                                        uniqueValueInfosfy12.push(new UniqueValueInfo(picfy12Symbol2, "N"));
                                                        uniqueValuerendererfy12.infos = uniqueValueInfosfy12;
                                                        featureLayer.renderer = uniqueValuerendererfy12;
                                                }

Thanks in advance!
-Alison

Identify Widget: Two paths for one link field

$
0
0
My customer has two folders for hyperlinked documents for one field in a layer. I have added code to IdentifyWidget.mxml as follows:
Code:

                        //concatenate
                                                                                if(val != "" && val != "Null"){
                                                                                        linkicon = identLinks[a].iconpre + val + identLinks[a].iconsuf;
                                                                                }else if(identLinks[a].iconpre != "" || identLinks[a].iconsuf != ""){
                                                                                        linkicon = identLinks[a].iconpre + val + identLinks[a].iconsuf;
                                                                                };
                                                                        };
                                                                };
                                                               

//My code
                                                                if (title == "Layer Name from XML")
                                                                {
                                                                        if (val != "" && val != "Null")
                                                                        {
                                                                                if (val.indexOf("substring1") != -1 )
                                                                                {
                                                                                        identLinks[a].pre = "http://VirtualDirectoryPath1";
                                                                                }
                                                                                else (val.indexOf("substring2") != -1 )
                                                                                {
                                                                                        identLinks[a].pre = "http://VirtualDirectoryPath2";
                                                                                }
                                                                        }                                                       
                                                                }
//End my code                                                               
                                                        };
                                                       
                                                        var lObj:Object ={
                                                                link: link,
                                                                icon: (linkicon == "")?null:linkicon,
                                                                alias: alias,
                                                                tooltip: ltooltip
                                                        };
                                                        lyrIdLinks.push(lObj);

I have included existing code before and after mine to show where it's placed. (I don't know why it's indented so much here - it isn't in the original file.) The code uses a different linkprefix value depending on a substring in the link field value (the document name).

The problem is that it always uses the path designated for else if. ( I have reversed the code within if and else if to confirm.) In other words, it works for substring2 but not substring1 (or the revese when I have switched their places). I have debugged and seen that substring values are both being read.

I originally used two <link> entries - one for each prefix. But both links showed up and only one worked - if that, probably because the link field was the same for both entries.

Any help is appreciated.

Mark

Flex Viewer App Builder Does not Work with Windows Authentication

$
0
0
I have user and role windows authentication configured. WHen I create or edit a Flex App using the 3.2 App Builder, I can connect to and edit rest services fine using localhost.....but then users can't see them 'till I edit config.xml with FQDN....for the operational layer. So now it works in the browser...but....when I go back to edit the flex app, I am queried for my Active Directory login when attempting to edit operational layer properties, which fails, as does the local ArcGIS Admin Account. I am an ADMIN on the server, and the service(s) work fine everywhere else. What gives?

Google Streetview in Flexviewer 3.2 - 2 Errors

$
0
0
In the Flexviewer 3.2 project, I loaded the source code for Google Street Viewer for Viewer 2.1-2.4, from http://www.arcgis.com/home/item.html...32b48e5f64ca74. Then I got 2 kinds of errors:
1) Type 1067: Implicit coercion of a value of type Array to an unrelated type com.esri.ags.tasks.supportClasses:ProjectParameters. StreetviewWidget.mxml /FlexViewer/src/widgets/StreetView_v3 line 156 Flex Problem
2) Type 1067: Implicit coercion of a value of type com.esri.ags:SpatialReference to an unrelated type mx.rpc:IResponder. StreetviewWidget.mxml /FlexViewer/src/widgets/StreetView_v3 line 156 Flex Problem
I guess they are related to the version change. What should I do to fix the errors? Thanks.

Printing to pdf returns a legend with striped symbology

$
0
0
I have been back and forth with ESRI support on this one, but thought I might try a post hoping the Flex Team will take a look at it. My situation is this: Being that I am on AGS 10.0 I am using ERSI's Export Web Map Task (http://sampleserver6.arcgisonline.co...b%20Map%20Task). When printing to a pdf, the symbology in the legend ends up "striped". Several Knowledge Base articles describes this and similar known bugs and uses a workaround described here: http://support.esri.com/en/knowledge...s/detail/40538 and here: http://support.esri.com/en/knowledge...s/detail/30753. Being that I am working off an ESRI sample server, obviously the workaround doesn't apply to me, but to ESRI......

This can be recreated by using the default configuration of the viewer off the ArcGIS Flex Resources site: http://resources.arcgis.com/en/help/...ive/index.html. From this viewer, just turn on demographics from the "More" tab and print to pdf. Most layouts that include a legend will have lines through the symbology. I have tried using other Export Web Map Tasks from ESRI Server's such as the ArcGIS Online Utility Services, but get similar results.

Any resolution to this situation would be greatly appreciated, as I can't be the only one experiencing this problem.

Thanks in advance,

Matt
Attached Files

draw and measure widget- labeling feature directly on the map position

$
0
0
Hello,
I am interested to write the text dynamically as label on the map (not in the widget text field) in the position I choose by using a mouse click. The functionality currently available on draw and measure widget is different.
Can anyone please guide me to the existing functionality which might be available?
Thanks in advance.
Regards
A.
Viewing all 2097 articles
Browse latest View live