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

Possible to change color of Attribute Table widget's yellow collapsable panel bar?

$
0
0
Hello,

I am looking to change the color of the yellow bar that you click to collapse the panel of the Attribute Table widget. Is this actually possible, and if so, whereabouts would this change take place?


Thanks in advance for all input.

David

Enhanced Layer List Widget 3.4

$
0
0
Hi Robert,

I would like to make the text (layer list items) in your Enhanced Layer List widget larger. Would that tweak be in a file in the toc/tocClasses folder? or would that be in the eLayerListWidget.mxml?

Thanks for your time.
Eric V
Gurnee, IL

Edit Widget

$
0
0
I installed ArcGIS Viewer for Flex 3.4. The operational layers were from our ArcGIS Server. But the Edit widget shows "No editable layers". What should I do to make editable layers available?
the operation layers are from SDE dataset (all my layers coming from SDE)

Is it possible to remove duplicate address from the search results in Geocoder?

$
0
0
Hello,

I am looking for a way to programatically remove duplicate addresses from the search results in the Geocoder used in the Header Controller widget. The problem is our street centerlines layer has segments throughout the city that have overlapping ranges, which results in multiple duplicate addresses showing up in the search results. It would be a massive project to correct the entire centerlines layer--and if any of the results are chosen, it zooms to the area accurately enough so that this hasn't been an issue in the past. However, it is slightly confusing when many of the same addresses appear. I have also considered removing the search results option, but there are many areas around the city that actually have the same address, just in a different neighborhood--so it is necessary to have the result options appear so a user may select the address in the correct neighborhood. See screenshots below for a better understanding of the issue.

Example of what needs to be changed:
Attachment 27049

Example of what needs to stay:
Attachment 27050


In summary, I'd like to figure out a way to programatically remove addresses from the search results that are exact duplicates, inclusive of neighborhood (because each result will zoom to the same general area) and I'd like to not remove addresses from the results that are the same address with a different neighborhood (because they are unique locations).

Any ideas or tips would be an immense help! Thank you!!

David
Attached Thumbnails
Click image for larger version

Name:	444_harrison_repeat.png‎
Views:	N/A
Size:	240.2 KB
ID:	27049   Click image for larger version

Name:	420_washington_repeat.png‎
Views:	N/A
Size:	240.6 KB
ID:	27050  

Strange Crossdomain.xml policy issue. Channel.Security.Error

$
0
0
I have two applications created with AppBuilder that are running fine, and have been running well for the past year. I just upgraded the AppBuilder to 3.4, the newest release. Before upgrading my applications I wanted to create a new application. Well, after creating the application I copied the crossdomain.xml file out of the existing applications in the wwwroot/flexviewers location and I'm receiving a crossdomain policy error:

"Basemap layer failed to load: Fault code: Channel.Security.Error

Fault info: Security error accessing url

Fault details: Destination: DefaultHTTP"



This is what is contained in our crossdomain policy, keep in mind that it works successfully for our existing application, but not for any new applications that I launch with AppBuilder:

<?xml version="1.0" ?>
<cross-domain-policy>
<allow-access-from domain="*" secure="false" />
<site-control permitted-cross-domain-policies="all" />
<allow-http-request-headers-from domain="*" headers="*" secure="false" />
</cross-domain-policy>


We've tried different variations of this, such as removing the 'secure="false"' tag.

I believe this may be associated with the upgrade of AppBuilder in some way. I'm at a loss for solutions at this point.

I also have another problem, in which coded domains will be included with web services sometimes, and sometimes not. I cannot determine what the catalyst is in this case. If anyone could point me to any literature at all relating to this subject, it would be very much appreciated. I have spent countless hours on google trying to find any information at all for it.

We recently installed SP1 for ArcGIS Server and also the Web Adapter.

Thanks,
Scott

e-search error (RPC Fault FaultString="")

$
0
0
Hi again,

My esearch stopped working after some changes I made mostly to the service/mxd. I have attached the error I am getting and the esearch.xml code as text. Even though I backtracked a couple of steps the error seems to persist. The problem started when I tried to join (one to one) two shapefiles with common ID field. Identify seemed to work well with this but then all symbols disappeared from the map view and search stopped working.

Can somebody point me in the right dirrection? Would it be better the delete this widget and start with a new download?

Thanks
Patricia
Attached Thumbnails
Click image for larger version

Name:	esearch error.jpg‎
Views:	N/A
Size:	15.8 KB
ID:	27057  
Attached Files

Flex 3.4 turn on/off operational layer

$
0
0
Hi Everyone,
I'm currently migrating to flex 3.4 from flex 2.3. Have anyone able to use the WidgetOpenHandler to turn on a specific operational layer. This code map.getLayer("DSIC Projects").visible = true; used to work in flex 2.3 but got an error in the new version.
FeatureLayer2097 layer failed to load: Fault code: 400. Any help would be appreciated, thanks.

Old Code:
Code:

private function widgetOpenedHandler(event:Event):void
                        {
                                if (graphicsLayer)
                                {
                                        graphicsLayer.visible = true;
                                }
                                map.getLayer("DSIC Projects").visible = true;                       
                      }

New Code:
Code:

private function widgetOpenedHandler(event:Event):void
            {
                if (resultFeatureLayer)
                {
                    if (shareResults)
                    {
                        map.addLayer(resultFeatureLayer);
                    }
                    else
                    {
                        resultFeatureLayer.visible = true;
                    }
                }
                map.getLayer("DSIC Projects").visible = true;           
            }

Problem with print in exact scale 1:2000, with Flexviewer 3.4. on a ArcGis 10.2 serve

$
0
0
Hi
I’m am setting up a Map, with 2 basemaps.
• one dynamic with layers automatic turn off in the scale range 1:50 < 1:1900 turs off at 1900
• One cashed tiled basemap in the scale range 1:2000<1:2000000

This don’t for improve speed, but we don’t have disk space for cashed the tiled map down for 1:50, therefor dynamic basemap the lower layers scales.

For viewing the scale lower than the tiled map, I set the LODS, an I works ok.
But the print in the exact scale 1:2000 A3 Portrait templates, the basemap is missing in the print, all other layers is show in the print.
Papersize A4L, A4P, A3L is all ok in all scales! and the exact scale 1:2000! Is also OK?

I have attached, I have attached documents of 2 print, and our config file

what am I doing wrong?
Attached Thumbnails
Click image for larger version

Name:	a3P_NoBasemap.jpg‎
Views:	N/A
Size:	53.5 KB
ID:	27079   Click image for larger version

Name:	ok_a3L.jpg‎
Views:	N/A
Size:	148.1 KB
ID:	27080   Click image for larger version

Name:	config_screendump.jpg‎
Views:	N/A
Size:	134.0 KB
ID:	27082  
Attached Files

Spatial Analysis

$
0
0
As we start to roll out our new system we are getting a wide variety of request. One of them being that we have a group that is in charge of maintenance at a lof of different locations. So when something breaksdown they would like to be able to find the closest tech/contractor with the ability to service the problem.

It seems as though this service will only allow you to do 5,10,15 miles so I guess I need to create my own.
http://sampleserver1.arcgisonline.co...veTimePolygons

I was thinking that Network Analyst would be good for this but was not sure about a couple of things so I wanted to test it a little bit.

1.) Should I be looking at ArcGIS Network Anaylst for Server or for Desktop or both?
2.) I think the extension for Desktop is $2500 but what is it for Server?
3.) Does anyone have a link to an example like this,
4.) Also each Tech will have a GPS device on them. Is it possible to use that person's GPS signal and plot it on a map? If so what do you need to do something like that. I think this maybe out of my league.
5.) Can I accomplish this in FlexViewer or is this going to have to be a Flex App?

Michael

Pop Up link without the "www" not working

$
0
0
I am on Flex Viewer 2.5. I have 2 popups, one with a hyperlinked field with a url of
http://www.scpafl.org/ParcelDetails.aspx?PID=07-20-31-505-0E00-0240,

and another with an url of http://search.sunbiz.org/Inquiry/CorporationSearch/SearchResults/EntityName/Sanora HOA, Inc/Page1

The url with the "www" hyperlinks, but the url with just the "http" will not. What am I missing?

Thanks
Lakshmi

How to change selection outline weight/color on map from Attribute Table widget?

$
0
0
Does anyone know how to change the outline color or weight of the selected feature on the map when selected from the table in the Attribute Table widget? I have polygons (buildings) that are very hard to distingish which one is selected. I am looking to increase the weight of the outline and/or the color to make it stand out more.

Thank you!

David

Display point with action script fails in widget

$
0
0
I have created a widget and I can not get it to put a SimpleMarkerSymbol at the location (x,y). The code compiles but myGraphicsLayer.add(myGraphicMarker); is not firing. I clearly am missing something.

Thanks,
Mike
Attached Files

Question on Enhanced Layer List Widget & Feature Layer Tips for Layer visibility

$
0
0
Currently I use both widgets Enhanced Layer List Widget(http://www.arcgis.com/home/item.html...934781d7234d18) & Feature Layer Tips widget (http://www.arcgis.com/home/item.html...a4fadd2028e379). I would like to know if you turn a zoning layer off (uncheck the layer) and your feature layer will be turn off with a label name "zoning" on your configuration file. Otherwise, your zoning layer will be on (check the layer).
Can someone show me where to change to code to perform this task?

Thanks.

Point in Polygon Selection

$
0
0
I have a Polygon Layer and a Point Layer. I would like to know if these tasks are able to be done in the Flex Viewer? and can someone explain to me how to do this, or at least point me in the right direction?

TASK 1
Is there a way when I select a polygon from the Search Widget to have it select all the points that fall inside that polygon?

TASK 2
With the points inside the polygon selected, export these records to an Excel Spreadsheet.

thanks.

Request map in tiles for dynamic service

$
0
0
ArcGIS Explorer breaks its requests for map services into 512x512 tiles. This makes it feel like the data loads faster. Another difference is it starts requesting tiles as you pan (with mouse button held down) instead of waiting for you to release the mouse and make a single request for the new bounding box.

Is there any way to make the flex viewer do tiled requests for dynamic ArcGIS map services like ArcGIS explorer does?

Flex Viewer 3.3 Header controller search issue

$
0
0
When I use the header controller search on my map service (lots of pipelines) it seems to position the pop-up window pointing to the cehtre of the extent of the feature rather than a point along the feature itself - which is not very helpful as they are sometime many km long and winding and the located point can be very distant from the actual polyline. Is there a way to make it locate along the feature as the standalone search widget does?
Thanks.

3.4 Print widget-Exclude Layers from Legend

$
0
0
Good morning All,
I am testing the 3.4 viewer, specifically the Print widget as we have had issues similar to what I am experiencing currently. I have referenced a local Export Web Map Task in the <taskurl> tag. I have also attempted to exclude some layers from the legend. Attempting to exclude layers from the legend that are in a cached map service works, but it appears I cannot exclude layers from a non-cached map service.
I am using an out-of-the-box 3.4 viewer. I have only added my base map and operational layers to the main config file. I have not referenced any widgets other than those included in the default main config file.
I am running AGS 10.1 SP1. Published map services reference layers in a SQL Server 2008 R2 gdb.

Has anyone else experienced issues similar to this?
Thanks for your time.
Eric V
GIS Coordinator
Gurnee, IL

Custom Print Problem

$
0
0
Hello, I'm looking for some help with printing using custom layouts.

I have published my printing service, loaded the print widget in App Builder and set it to use arcServer to print using the following URL

https://mywebserver/arcgis/rest/serv...rt%20Web%20Map

The service reads in ok and allows me to set the default format and my custom layout template.

The problem comes when I open the print widget in my flex app e.g. https://mywebserver/flexviewers/myviewer
I immediatedly get the error:

Unable to connect to GP Service:
https://mywebserver/arcgis/rest/serv...rt%20Web%20Map

GIS Server is missing a crossdomain file.
[RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTPS"]

We are using a setup as follows:
Windows Domain User Store
ArcGisServer Builtin Role Store
Web Tier Authentication

Despite the error message, there is a crossdomain file at D:\ArcGIS\Server\framework\runtime\tomcat\contexts\rootapp

which reads as follows:

<?xml version="1.0"?>
-<cross-domain-policy>
<allow-access-from domain="*"/>
<site-control permitted-cross-domain-policies="all"/>
<allow-http-request-headers-from domain="*" headers="*"/>
</cross-domain-policy>

All my other services are working and accessible and the server has access rights to the folder with my custom layouts in it.
Does anyone have any ideas?

Thanks

Annotation Layers not showing up in ArcGIS 10.1 - Please help

$
0
0
We just recently updated our server to ArcGIS version 10.1 and now my Annotation layers are not showing up on my map. I'm using Flex Viewer 3.2. Below are the calls in my main config.xml to my 3 map services that aren't showing up. Does anything have any thoughts? Should I be using a different layer type? Unfortunately, I need help on resolving this issue ASAP.. I have a customer who is waiting.

Code:

<layer label="EPA Region Labels" type="dynamic" visible="true"  alpha="0.8"
                  url="http://gispub2.epa.gov/ArcGIS/rest/services/NEPmap/EPARegionLabels/MapServer"/>       
<layer label="NEP Labels - Local" type="dynamic" visible="true"  alpha="0.7"
                  url="http://gispub2.epa.gov/ArcGIS/rest/services/NEPmap/NEPLocalLabels/MapServer"/>
<layer label="NEP Labels - Regional" type="dynamic" visible="true"  alpha="1"
                  url="http://gispub2.epa.gov/ArcGIS/rest/services/NEPmap/NEPRegionalLabels/MapServer"/>

Thank you,

Ali Page

eLayerList 3.4-Excluding layers

$
0
0
Robert,
I am using the 3.4 eLayerList. I have added numerous layers to be "excluded" in the config file for the widget. I am finding that if I remove some layers using the excludelayer tag, the layer does not show up on a print (using the default Print widget). I have attached an image showing one service listing. If I remove any of the address layers/sublayers (0-4), these layers do not show up on the exported PDF (or image) - even though they are displayed in the application.

Is this expected behavior?

Thanks for your time.
Eric V
Gurnee, IL
Attached Thumbnails
Click image for larger version

Name:	eLayerList.PNG‎
Views:	N/A
Size:	21.0 KB
ID:	27119  
Viewing all 2097 articles
Browse latest View live