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

PanelBox WidgetOutline

$
0
0
Hello,
I am customizing the widget container PanelBox. I know that the colors are set using the VerticalPanelBoxButtonSkin and HorizontalPanelBoxButtonSkin as well as the PanelBox.as. My issue is the border placed around the widgets. If you go into the WidgetTemplateSkin and take out all borders and open them in a float container they indeed have no borders. But if you place that widget into a panel container it gives each widget a border on the right and bottom sides (see attached image). What I am trying to do is get rid of these borders for a more blended look. I'm not sure what I am missing here but can't seem to find any reference to this border in the above mentioned files. Any help would be greatly appreciated.

Thanks,
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG‎
Views:	N/A
Size:	614.7 KB
ID:	23379  

Labels are not showing up in application built with Application Builder

$
0
0
Hello,

I am making a map using the ArcGIS Viewer for Flex - Application Builder everything works like I would like it to but I can't get my labels to show up for streets. They are turned on in the MXD that the service was made from. I've looked for a place to turn labels on and off in the builder but can't find one.

If anyone has suggestions that would be awesome,

Chris

IdentifyWidget by Robert Cheitlin

$
0
0
I got Robert Cheitlin (the most intelligent and productive developer for ESRI Flex development) IdentifyWidget's source code from https://github.com/rscheitlin/Identi...ifyWidget.mxml. But when I compiled it, an error on Line 1629
private function getResultByGID(gid:Number):IdResult
Description Resource Path Location Type
1046: Type was not found or was not a compile-time constant: IdResult.
I expect Robert's response how to solve this problem. Thanks.

Controlling widgets from HeaderControllerWidget

$
0
0
Hello,

I have a very customized HeaderControllerWidget to provide a very specific type of interface. As part of this I have a few short cut links placed in the header itself that basically provide quick access/population to certain widgets.

My problem is that if the widget isn't already open, I don't seem to be able to get ahold of the correct event listener to wait for the widget to finish loading. Code example:

Code:

widgetID = ViewerContainer.getInstance().widgetManager.getWidgetId("widgetName");
iWidget = ViewerContainer.getInstance().widgetManager.getWidget(widgetID,true);
        if(!iWidget)
        {
                var timer:Timer = new Timer(1000,1);
                timer.start();
                timer.addEventListener(TimerEvent.TIMER_COMPLETE, completeHandler);
                function completeHandler(event:TimerEvent):void
                {
                        addSharedData("popUser", new ArrayCollection([userData.text]));
                        timer.stop();
                }
        }
        else
                addSharedData("popUser", new ArrayCollection([userData.text]));

So as you can see, as sort of a hack to get it working I have a timer delay inserted in the code if the widget is not already loaded. The problem is that without the timer delay, if the widget is not already loaded, the getWidget returns null. So I can't seem to get access to the widget object to add an event listener until it's loaded (at which point I no longer need an event listener).

The other option is I could have the widgets preload and just not have them visible. However, again that feels kind of hacky.

Any other suggestions?

GP Widget

$
0
0
Hello All,

Is it at all possible to run two different GP services based on user input parameters with the GP widget?

Meaning:

If user selects A then A GP service is run or if B is selected then B GP service is run

thanks

Eric

how to add text above flex's progress bar

$
0
0
Hi
I want to change flex's progress bar:Attachment 23386 to another thing. But I don't know how?
I want to add a text over progress bar or some thing else.
Please help me.
Regards
Attached Thumbnails
Click image for larger version

Name:	progress.jpg‎
Views:	N/A
Size:	11.5 KB
ID:	23386  

Config Issues with Enhanced Time Slider Widget version3.2 for FlexViewer3.2

$
0
0
Is it possible to provide a user option with time window to select custom date and time instead of specifying a fixed one in the .xml file for Flexviewer3.2

Kiran

Renderer/arcGis Server 10

$
0
0
I want to create Render Dynamic with arcGis Server 10

some one can help me.

Identify results in Order

$
0
0
The identify results come up randomly. Is there possible to show the order of identify results based on the order of IdentifyWidget.xml input? Any suggestions will help. Thank you.

How to display a specific layer in my widget?

$
0
0
I would like to display a specific operation layer in my widget from the config file. Do I have to use toc package in flex viewer? My question is: where can I get the map or url information and how to use it in my widget? Thanks a lot!

Location of source code for ArcGIS Viewer 3.0 for Flex

$
0
0
I am trying to locate the source code for the 3.0 version of ArcGIS Viewer for Flex.

Alternately can someone provide me a link to documentation that I can create a widget using the available 3.1 source code and drop it into a 3.0 application.

Thank you.

TJ

wTemplate.addTitlebarButton() - icons not displayed

$
0
0
In the previous version of a Flexviewer project, I used
wTemplate.addTitlebarButton(ICON_URL + "c_home.png", "Search Parcel",
DisplaySearch_0);
wTemplate.addTitlebarButton(ICON_URL + "i_help.png", "Search Tips",
DisplaySearch_2);
to add icon-buttons on the top of the widget. But when I loaded it into the V3.2 Flexviewer, no icon-buttons display on the top of the widget UI.
What update I should do to use the previous version widgets to solve the problem? Thanks.

Load Bing Map & Google Maps

$
0
0
I borrowed a piece of code to load Bing and Google maps. The related piece of code is below. However, neither google map or Bing map displays on the browser. I am not sure whether I should have token/key for Bing/google map. If yes, where should code to include the token/key? Thanks.


------------
public var mapClickHandler:Function;

public function bing_clickHandler():void {
mapClickHandler = generateLinkHandler(WebMapLinkEvent.BING);
map.addEventListener(MapMouseEvent.MAP_CLICK, mapClickHandler);
}

public function google_clickHandler():void {
mapClickHandler = generateLinkHandler(WebMapLinkEvent.GOOGLE);
map.addEventListener(MapMouseEvent.MAP_CLICK, mapClickHandler);
}

private function generateLinkHandler(linkType:String):Function {
return function (event:MapMouseEvent):void {
var point:MapPoint = event.mapPoint;
var link:WebMapLinkEvent = new WebMapLinkEvent()
link.point = point;
link.mapType = linkType;
CentralDispatcher.dispatchEvent(link);
}
}

eSearch Question

$
0
0
Hi All,

I swear that i have seen this question asked before but I can not seem to locate the thread, so forgive me if i am re-posting an already answered/discussed question.

My situation is this. I am using the eSearch Widget with multiple values inside an expression to select students from my mapservice. Is it possible to have a userlist (using the 'uniquevalsfromfield' attribute) populate with only values that apply to features from an above userlist selection? ie: If in the first userlist dropdown a user selects students from School 'A', the next userlist would repopulate with values that only apply to school 'A'; not every possible value. For instance, schools are either K-5, 6-8, or 10-12 in respects to grade configuration, so say School 'A' has a K-5 grade configuration, once a user selects School 'A' from the first dropdown, the next dropdown (which would allow users to pick from a Grade), only has All,K,1,2,3,4,5 available as possible selections; Not All,K,1,2,3,4,5,6,7,8,9,10,11,12. Hopefully I am explaining that correctly and not just confusing everyone.

I am not sure if this is possible or not as it seems like the Widget would have to preform a query "behind the scenes" against the database every time a user selects a value from a userlist in order to repopulate the remaining userlists. Any thoughts would be greatly appreciated.

Thanks in advance,

Matt

Viewer for Flex Projection Question...

$
0
0
Hello,

I want to verify something in regards to proper projection use within the Viewer for Flex application.

I have 16 tif files that I am bringing into an .mxd file inorder to establish their symbology, etc.

The files are not in the default web mercator auxillary projection used by the Viewer for Flex app. They are in NAD 1983 UTM Zone 12N. Instead of reprojecting them individually into web mercator I have set my data frame to the WGS 1984 Web Mercator projection. Then published a map service from the mxd.

Does this work properly or will the data be off a bit?
Also, should I be using the WGS 1984 Web Mercator or the WGS 1984 Web Mercator Auxilary Sphere projection? Whats the difference?
Is it possible to alter the projection setting for the Viewer for Flex? I am planning to use some of their basemap layers.

I am using ArcGIS 10.1 and Viewer for Flex 3.2.

Thanks,

Haskett

How to use radio buttons to control a dynamic map service?

$
0
0
I want to use two radio buttons to open a dynamic map service, it has two sub-layers. I hope each time I click one radio button, it can show just one sub-layer of this dynamic map service. I know how to show the whole dynamic layer, but can not figure out how to show just one of its sub-layers. For example,

Code:

var layer1:Layer = new ArcGISDynamicMapServiceLayer("http://arcgis02.*****.com/ArcGIS/rest/services/new season/new season/MapServer");
when layer1 is added by
Code:

toc.map.addLayer(layer1,-1)
, both sub-layers are added. My question is: How to add just one sub-layers? BTW, if I change the url to "http://arcgis02.****************/MapServer/0", nothing shows up on the map.

Thanks a lot!

How to hide a widget's icon on the toolbar

$
0
0
At http://forums.esri.com/Thread.asp?c=158&f=2421&t=277136, a Q is
How to open widget from other widget and minimize it? From http://forums.arcgis.com/threads/619...another-widget. I got a similar Q but for V3.2.
In Widget A, I added the code below in the widget
AppEvent.dispatch(AppEvent.WIDGET_RUN, 3);
// where 3 is the widget id (refer to config.xml).
Using this piece of code, I should open the widget with id = 3.
In the config.xml,
<widget label="Find an address" right="10" top="450"
icon="assets/images/i_target.png"
config="widgets/Locate/LocateWidget_World.xml"
url="widgets/Locate/LocateWidget.swf"/>
Since I don't want to show the LocateWidget icon on the tool, what is the way to hide its icon and make it invisible? I tried set visible="false" but it does not work.

Okay, I'm stuck on reworking the Chart Widget (3.0)

$
0
0
Unfortunately I can't post any URLs or such and have to obfuscate a few details, but I'm trying to rework the Chart Widget (3.0) to do a specific thing and am stuck. I'm using the 3.0 viewer because we haven't yet migrated higher, and I have to get this working on the existing setup before the upgrade will happen....

The reason I'm using the Chart Widget for this is because it's the "closest fit" out of the box to where I'm trying to go, and I'd prefer to reinvent as little of the wheel as possible.

I've completely revamped the ChartWidget.xml to only include the details of the single service layer I'm targeting, which is custom. Below the .xml contents I'll explain what I'm trying to do with this thing, it'll make more sense then.

Here's what I've got in the .xml file:

Code:

<?xml version="1.0"?>
<configuration label="Census Chart Testing">
    <highlightcolor>0x336699</highlightcolor>
    <layers>
        <layer label="Census Testing" url="http://xxxxxxxxxxxxx/arcgis/rest/services/Regional/All_Hazards_Census_Counts/MapServer/0">
            <labelfield>OBJECTID</labelfield>
            <fields>
                <field name="OBJECTID" alias="Object ID"/>
                <field name="SNAPCASH" alias="SNAP/Food Cash Benefits (Tract)"/>
                <field name="LANGUAGE" alias="Non-English Speakers (Tract)"/>
                <field name="UNDER5" alias="Pop. Age 5 or Under (Tract)"/>
                <field name="OVER65" alias="Pop. Age 65 or Older (Tract)"/>
                <field name="POP2010" alias="2010 Pop."/>
                <field name="INMATES" alias="2010 Inmate Pop."/>
                <field name="JUVENILE" alias="2010 Juvenile Center Pop."/>
                <field name="NURSING" alias="2010 Nursing Home Pop."/>
                <field name="UNIVERSITY" alias="2010 University Housing Pop."/>
                <field name="HOUSING" alias="2010 Homes Count"/>
                <field name="URGENTCARE" alias="Urgent Care Fac."/>
                <field name="FIRE" alias="Fire Stations"/>
                <field name="LAWENFORCE" alias="Law Enforcement Fac."/>
                <field name="POWERPLANT" alias="Electric Gen. Fac."/>
                <field name="CORRECTION" alias="Correctional Fac."/>
                <field name="NTLSHELTER" alias="NSS Shelter Locations"/>
                <field name="AIRPORTS" alias="Airports/Heliports"/>
                <field name="BLOODORGAN" alias="Blood/Organ Bank Locations"/>
            </fields>
            <medias>
                <media caption="Total Population is: {=SUM}" chartfields="POP2010" type="piechart"/>
                <media caption="SNAP/Food Cash Benefits (Tract): {=SUM}" chartfields="SNAPCASH" type="piechart"/>
                <media caption="Non-English Speakers (Tract): {=SUM}" chartfields="LANGUAGE" type="piechart"/>
                <media caption="Pop. Age 5 or Under (Tract): {=SUM}" chartfields="UNDER5" type="piechart"/>
                <media caption="Pop. Age 65 or Older (Tract): {=SUM}" chartfields="OVER65" type="piechart"/>
                <media caption="2010 Inmate Pop.: {=SUM}" chartfields="INMATES" type="piechart"/>
                <media caption="2010 Juvenile Center Pop.: {=SUM}" chartfields="JUVENILE" type="piechart"/>
                <media caption="2010 Nursing Home Pop.: {=SUM}" chartfields="NURSING" type="piechart"/>
                <media caption="2010 University Housing Pop.: {=SUM}" chartfields="UNIVERSITY" type="piechart"/>
                <media caption="2010 Homes Count: {=SUM}" chartfields="HOUSING" type="piechart"/>
                <media caption="Urgent Care Fac.: {=SUM}" chartfields="URGENTCARE" type="piechart"/>
                <media caption="Fire Stations: {=SUM}" chartfields="FIRE" type="piechart"/>
                <media caption="Law Enforcement Fac.: {=SUM}" chartfields="LAWENFORCE" type="piechart"/>
                <media caption="Electric Gen. Fac.: {=SUM}" chartfields="POWERPLANT" type="piechart"/>
                <media caption="Correctional Fac.: {=SUM}" chartfields="CORRECTION" type="piechart"/>
                <media caption="NSS Shelter Locations: {=SUM}" chartfields="NTLSHELTER" type="piechart"/>
                <media caption="Airports/Heliports: {=SUM}" chartfields="AIRPORTS" type="piechart"/>
                <media caption="Blood/Organ Bank Locations: {=SUM}" chartfields="BLOODORGAN" type="piechart"/>
            </medias>   
        </layer>
    </layers>
</configuration>

As you'd expect, the caption on each chart "page" does indeed provide the sums from the retrieved data - what I want to accomplish is showing a single page with ALL the captions, before all the others showing the charts. This way, those users simply looking for the raw totals can see them at a glance, and those who want to see a chart can just page through the results as they wish.

Another thing I'd like to accomplish but haven't yet tried to flesh-out is the ability for the Chart Widget to select an existing graphic rather than needing to redraw the selection area created by another widget - pointers in that direction would be greatly appreciated as well.

I am unfortunately not experienced enough (yet!) in this coding, to be able to get this figured out on my own.

Would anyone out there be willing to assist?

Thanks in advance....

No results using Identify Widget 3.2

$
0
0
I have successfully used the Identify tool in a viewer with point feature layers, but I can't seem to get it to work in another viewer that has a polygon feature layer (it's an index). The results pop-up will not display once you've selected features. It does not appear to even acknowledge the feature layer exists. Since I can get the point feature layer working in the other viewer, I was pretty sure it isn't my coding, unless there is something specific I need to do in order to get it to select poly features vs. point. Any thoughts?

Group Layer Visibility

$
0
0
Does anybody know of a way to track the visible state of a group layer? It seems as though the visibleLayers array does not include the group layers and defaultVisibility isn't helpful either.

What I am trying to do is develop a widget that will allow the user to save the current map state, sort of like a bookmark, but to include layer visibility and basemap visibility. I've got what I need EXCEPT I have no way of knowing when a user turns on/off a group.

Any help is appreciated!

Thanks,
Angie
Viewing all 2097 articles
Browse latest View live