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

How to add a layer using config file's information?

$
0
0
I need to add a layer from config.xml, I put down codes like
Code:

toc.map.addLayer("season", -1);
"Season" is the from config.xml as the following
Code:

<operationallayers>        <layer label="Season" type="dynamic" ..../>
But it does not work. How should I add a layer from config file? Thanks a lot!

SwipeSpotlight Widget - How can I exclude layers?

$
0
0
Hello

I am using the latest version of the SwipeSpotlight widget and was wondering if anyone knows how to deactivate/exclude and/or remove layers from the dropdown list in the widget?

I am using ArcGIS 10.1, Flex 3.2, the compiled version of SwipeSpotlight 3.2.

Thanks for any assistance,

Haskett

Google Street View - Not working for aun unknown reason

$
0
0
I added StreetViewWidget V3.0 yesterday, and it worked find. But it lost function this morning. When I click a point on map, the icon point is added on the map, but the StreetView panel does not display anymore. Does anyone have such an experience? Thanks.

Build in FlashDevelop

$
0
0
I want to create a custom widget for the flex viewer. I have installed FlashDevelop 4.3.0, imported the ArcGIS Viewer for Flex source, and the API swc. I'm having the same problem as described in this post, but I still don't understand how to resolve the config file issue. When I build the project, FlashDevelop kicks off the debug player, and I get the following message. Nothing else happens. Can anyone help me figure out how to fix this config.xml problem? The error message follows, and I've attached a screenshot.

Could not find config.xml

Fault code: Server.Error.Request

Fault info: HTTP request error

Fault details: Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: file:///C|/source/FlexViewer/Viewer/bin%2Ddebug/widgets/WidgetContainer/config.xml"]. URL: config.xml

Attachment 23444
Attached Thumbnails
Click image for larger version

Name:	error1.png‎
Views:	N/A
Size:	13.9 KB
ID:	23444  

Bing base maps missing

$
0
0
In the new ArcGIS viewer for Flex, I am unable to add Bing base maps; they are not visible in the list (I added the Bing key under settings). Any clue why it is missing?

I can still use an old app template which has bing base maps added, but not able to add to a new template.

Thanks

Thomas

Help required in grouping composite symbols.

$
0
0
Hello everybody,
I want to group multiple composite symbols so that I can move them as one unit on map. Is there any container to hold multiple composite symbols?

As Composite Symbol is Array of other symbols (like TextSymbols, PictureMarker and SimpleFillSymbol), I want to create array of Composite Symbols.

Any idea to accomplish this? Any help or guideline will be very helpful and appreciated. I am stuck.
Thanks.

Query widget doesn't render the filter result

$
0
0
I have configured a Query widget on map service, filter by "category".
It can do a query, get result in the query widget. But it cannot render the result set on a graphics layer

I check the sample, it renders the filter result on the map.
http://resources.arcgis.com/en/help/...nfig-query.xml

My Query Widget xml file. What i missed to render the result on map? Thanks.
<?xml version="1.0" ?>
<configuration>
<layer>http://testserver/arcgis/rest/services/Testing/TestReportAll/MapServer/0</layer>
<query>1=1</query>
<titlefield>category</titlefield>
<linkfield/>
<refreshrate/>
<zoomscale>50000</zoomscale>
<shareresults>true</shareresults>
<orderbyfields>event_number</orderbyfields>
<fields all="false">
<field name="event_number" alias="occ_number"/>
<field name="category" alias="category"/>
</fields>
<filterfield>
<name>category</name>
<alias>Filter by category #</alias>
</filterfield>
</configuration>

Drag & Drop list item of the eMapSwitchWidget

$
0
0
In my thread How to dynamically change the order of basemaps http://forums.arcgis.com/threads/815...p-in-MapSwitch, Robert hinted me to use drag and drop properties. I borrowed a source code in http://ghalex.com/blog/examples/CustomDrag/srcview/, and did the following customization as below:
1) In the <s:List> </s:List> block, added:
dragEnabled="true"
dragMoveEnabled="true"
dropEnabled="true"
dragOver="listDragOverHandler(event)"
2) In the <fx:script> </fs:script> body, added
import mx.managers.DragManager;
import mx.events.DragEvent;
private function listDragOverHandler( event:DragEvent ):void {
// with this call we are telling that we will handle the drag
event.preventDefault();
var selectedItem :XML = XML(basemapGallery.selectedItem);
var move :Number = Number(selectedItem.attribute('canMove'));
if (event.dragSource.hasFormat("items") && move) {
// Drag allowed
event.currentTarget.showDropFeedback(event);
DragManager.showFeedback(DragManager.MOVE);
return;
}
// Drag not allowed.
event.currentTarget.hideDropFeedback(event);
DragManager.showFeedback(DragManager.NONE);
}

Results: An error message is thrown:
ReferenceError: Error #1069: Property hideDropFeedback not found on spark.components.List and there is no default value.
at widgets.eMapSwitcher::eMapSwitcherWidget/listDragOverHandler()[C:\...\Flex Projec
at widgets.eMapSwitcher::eMapSwitcherWidget/__basemapGallery_dragOver()[C:\...\Flexviewer\Flexviewer\src\widgets\eMapSwitcher\eMapSwitcherWidget.mxml:616]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.managers.dragClasses::DragProxy/_dispatchDragEvent()
at mx.managers.dragClasses::DragProxy/dispatchDragEvent()
at mx.managers.dragClasses::DragProxy/mouseMoveHandler()
After clicking the Continue button, the item does change its order.
In the source code, the original author used mx but in the eMapSwitch, it gets conflict with spark. How can this be debugged? Welcome your smart solution.

Python script tool works in Desktop but fails in Web,

$
0
0
Python script tool works in Desktop but fails in Web,


Ian Peebles has generously shared a python script tool that display xy coordinates.

For me it is worked fine on the ArcGIS desktop, and published successfully on the server, but as it is added to the one of the web applications builders like (.Net, Silverlight, Flex), it fails to work

Attachment 23481, Attachment 23482, Attachment 23483

Where might be my mistake?


The python script tool, instructions and screenshots can be downloaded from the link below
http://www.mediafire.com/?5ay8m6yu777606r

Thank you

Best

Jamal

----------------
Developed by "Ian Peebles"

http://forums.arcgis.com/threads/783...more-than-one-

displaying (x,y) in Desktop and Web application

1. outputworkspace (folder used for scratch)
2. Script (folder that contains the XY.py script)
3. Symbology (folder that contains the output symbology as layer files)
4. Toolbox.tbx (contains the FindCoordinate script tool)

The script contains a creation of an event layer that uses your coordinate system.

Steps to follow:
1. Copy these files into a folder to your local drive or server. You might name it Coordinates.
2. Set the scratch workspace in your .mxd. In this case, I used: C:\Files\GIS\Coordinates\outputworkspace (Geoprocessing -- Environment -- Workspace -- Scratch Workspace)
3. Open the Toolbox and run the tool.
4. Enter in the coordinate and click OK. Takes about 1 second to run.
5. The results will appear in the table of contents, symbolized with the coordinates labeled based on the referenced layer file.
6. If the script successfully runs, in ArcMap go to: Geoprocessing -- Results -- Current Session.
7. Right Click on the last geoprocessing results and choose Share as Geoprocessing Service.
8. Following the publishing of your geoprocessing service, you can add this into your silverlight application as a tool.
------------------------------------------------------------------
Attached Thumbnails
Click image for larger version

Name:	Clip_911.jpg‎
Views:	N/A
Size:	151.0 KB
ID:	23481   Click image for larger version

Name:	Clip_912.jpg‎
Views:	N/A
Size:	131.6 KB
ID:	23482   Click image for larger version

Name:	Clip_913.jpg‎
Views:	N/A
Size:	157.9 KB
ID:	23483  

parametrer les widgets

$
0
0
Salut tout le monde
svp je voudrais parametrer mes widgets par exemple(SearchWidget) quelqu'un à une idée
et merci d'avance pour votre aide

RotateWidget for the 3.2 ArcGIS Viewer for Flex

$
0
0
Hey guys,

I just posted a RotateWidget for the 3.2 ArcGIS Viewer for Flex.
It was based on the API example by ESRI.

You can find it here.

Credits to David Raijmakers! :)

Can the BufferDistance widget be extended?

$
0
0
The BufferDistance widget (V3.2) is only for Point buffering. I wonder if the author, Mr. Robert Scheitlin, can extend the tool for general use with the functions for line and polygon's buffering, just using the components in eSearch-master (
http://www.arcgis.com/home/item.html...dfd8d8fb2a513e). Thanks.

Multiple Clustering

$
0
0
The clustering in the layer tag is a good way to deal with large amount of concentrated map points. However, if you wish to display the clustering symbols from 2 or more layers at the same time on the map, there is no way to differentiate the clustering symbols for which layer are for. Is there any way to include in the clustering symbol not only the numbers of points, but also the name of the layer that it is referring to? I know by clicking on the clustering you can get that info, but if you have several clustering breakouts it could a time consuming effort to identify the clustering of a specific layer.

How to add FEMA WMS layer into config using 3.2 App Builder?

$
0
0
I am trying to add the FEMA WMS layer into the App builder (3.2) without any luck. Ive tried adding it using the GetCapabilities, GetMap and GetFeatureInfo urls. Has anyone else been successful with adding this layer using app builder?
Thanks
Gerald

Layer names are not present in the legend of my custom map template

$
0
0
I'm nearly done building my Flex web map, but I have one lingering problem that I have not been able to solve.

I'm using the advanced printing capability of Flex 3.2 and the Export Map/Print widget to send the current web map view to a custom map template MXD.

It all works well, except I'm having problems getting the legend to look the way I need it to. The problem is that the layer names are not added to my legend in the map template MXD. All I have are the field values and the symbol patches. I need the layer names in the legend because without them, the legend makes no sense.

Here's my setup:
1) In my map template MXD, I have the legend set to show only features that are visible in the map extent.

2) In my map template MXD, I have all the layers checked OFF in the ArcMap table of contents.

3) I'm using Robert's Enhanced TOC widget in my web map.

4) My PrintWidget.xml file is set up so that no layers are excluded from the legend (i.e., all layers from the web map get sent to the map template MXD.


Here's what the TOC in my web app looks like. Notice that the two layers Surface Patented and Surface Selected) have similar attribute values (native allotment, other private land, etc.). Because of this, it is essential that the layer names are included in the TOC in the web map and in the map template MXD legend. Below is a screenshot of the TOC in the web map, and you can see that everything is fine - no problems with it.

Attachment 23527



And here's what the legend in my map template MXD looks like. Notice that the layer names are missing. This makes it impossible to associate the symbol patches and values with a particular layer.

Attachment 23528



Below is a Photoshop mock-up of how I need the legend to appear in my map template. Notice that it has the layer names associated with the attribute values.

Attachment 23529




I have tried using the <excludelayerfromlegend> tag in my PrintWidget.xml file, and then relying on the legend in my map template MXD to supply the layer names in the legend. But the problem with that is, for any legend entries to show up at all, I have to turn on all the layers in the MXDs table of contents (they all have to be turned on because I won't know which layers the user has turned on in the web map TOC). So if the user has only two layers turned on in the web map, and nine layers are turned on in the MXD table of contents, then the resulting map legend shows nine layers instead of only the two that the user has turned on in the web map. So it seems like I have to have all the layers turned off in the MXD table of contents, and rely on the Print Widget to supply the layers that are turned on in the web map.

So, my question is, what am I doing wrong? Am I correct in thinking that the Print Widget should include the layer names in the legend of my custom map template? I'm stumped.
Attached Thumbnails
Click image for larger version

Name:	toc.png‎
Views:	N/A
Size:	170.8 KB
ID:	23527   Click image for larger version

Name:	TOC-map-template-incorrect.png‎
Views:	N/A
Size:	219.9 KB
ID:	23528   Click image for larger version

Name:	TOC-map-template-desired-result.png‎
Views:	N/A
Size:	168.7 KB
ID:	23529  

Print Widget Source Code?

Print using ArcGIS Server Print Task not working

$
0
0
Can someone please help!

I opted to use the Flex Viewer as the UI for my organization's internal GIS deployment and for the past few days I've been trying to get the print widget to work. Ordinarily it works in the default setting however it persistently returns an error message (please see below) anytime I use the "Print with ArcGIS Server" function and browse to my server's print task "http://lamata-gissvr:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task". I am no developer/programmer, I would just like to have the basics work first and would really prefer to use the "Print with ArcGIS Server" function, because it has more print options for my users to select from. What am I doing wrong? I need help fast!!!!




Error executing print task:

[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"]. URL: http://lamata-gissvr:6080/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute?f=json&Web%5FMap%5Fas%5FJSON=%7B%22mapOptions%22%3A%7B%22extent%22%3A%7B%22ymax%22%3A857807%2E0054299927%2C%22xmin%22%3A431275%2E5849112206%2C%22spatialReference%22%3A%7B%22wkid%22%3A32631%7D%2C%22ymin%22%3A736892%2E180267009%2C%22xmax%22%3A694271%2E9442372726%7D%7D%2C%22exportOptions%22%3A%7B%22outputSize%22%3A%5B994%2C457%5D%7D%2C%22operationalLayers%22%3A%5B%7B%22id%22%3A%22LAMATA%20Basemap3%22%2C%22title%22%3A%22LAMATA%20Basemap3%22%2C%22url%22%3A%22http%3A%2F%2Flamata%2Dgissvr%3A6080%2Farcgis%2Frest%2Fservices%2FLAMATA%5FGEOSPATIAL%5FDATASETS%2FLAMATA%5FBasemap3%2FMapServer%22%7D%5D%2C%22layoutOptions%22%3A%7B%22legendOptions%22%3A%7B%22operationalLayers%22%3A%5B%5D%7D%2C%22titleText%22%3A%22h%22%7D%7D&Format=PDF&Layout%5FTemplate=MAP%5FONLY"]

labels with backgrounds

$
0
0
I have been trying to publish my layer and keep getting "Layer is using unsupported setting (KML)". Is there a way in the flex viewer to change the label background. I simply want a label that has a solid background so that it stands out. Does anyone have a way to either publish the service with the label style I want or change it in flex?

As well, is there a code I can put in the text to add a carriage return, that is a bonus.

Thanks,
Mike

Google Street View

$
0
0
Hi,

I looking for Google Street View widget to add it in my application builder. I have Flex Viewer 3.2. Dose anyone knows how to add it, it is for my final project. Please I need help

I want to add widgets make the map better. ANY help

Thank you
Rasha

search

$
0
0
salut tout le monde

svp je voudrais créer une recherche comme suite :

1) recherche attributaire:
dropdoawnlist 1==> contient la liste de mes couches
dropdoawnlist 2==> contient la liste des fields sur laquelle je vais effectuer ma recherche


1) recherche spatiale:

et merci d'avance
Viewing all 2097 articles
Browse latest View live