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

Overview Map Extent

$
0
0
The documentation describes the extent which is displayed in the Overview Map as below:

"Displays the map extent zoomed out three times the main map display (until the maximum extent is reached)."

http://resources.arcgis.com/en/help/...000003r000000/

I don't have a true base map in my application. The service used by the Overview map has a upper scale threshold of 1:100,000. However once my map goes beyond a scale of 1:8100 I no longer get anything in my overview. I got a value of 8100 by making my map perfectly square. On a more rectangular map it disappears at around 1:6000.

The documentation would suggest that the overview should be showing the map at 1:24300 (8100 x 3) in which case the I should still see the map service.

If the documentation meant 3 zoom levels then it would still be visible, showing 1:64800 (8100 x 2 x 2 x 2).

Am I misreading the documentation? Is the documentation just wrong? Or is something odd with my application/map service?

GP service results with map service - zooming problem

$
0
0
Hi,

I have created and published a GP tool which searches a feature class using a few parameters (user inputs). During publishing the tool I have chosen to use a map service to show the result. Everything works fine when the tool actually finds a feature. But when the result set is empty (and the map service has nothing to show) Flex Viewer zooms out and then the map is empty (scale dependencies in my basemap). Is there any way of avoiding this? The other thing is that I do not need a map service showing the results but when I visualize it using graphics the viewer does not zoom/pan to retrieved features (although they are being shown correctly in the map).

Is there any way to force Flex Viewer to zoom in to retrieved features?

Thanx,
B.

Layer list/Table of Contents problems

$
0
0
I have a flex web app and I am having an issue with rendering the Table of Contents/Layer list. I have two separate problems. First, there is a large gap between the layer list and the bottom of the widget container. Secondly, while I can scroll down to look at all available groups of layers, it would be nice to have them all come up (there are about 3 below the last layer on the screenshot). Fairly new to flex (someone else built the basic application) but I am hoping someone knows how to fix one or both of these problems.
Attachment 26180
Attached Thumbnails
Click image for larger version

Name:	Screenshot_Atlas.jpg‎
Views:	N/A
Size:	122.7 KB
ID:	26179   Click image for larger version

Name:	Atlas_Layer Screenshot.jpg‎
Views:	N/A
Size:	140.6 KB
ID:	26180  

zone aliases for locator widget results?

$
0
0
We're using a local geocode service with municipal codes as the zones instead of zip codes. It would be helpful for our end-users to see the zone names (aka municipal names) in the results tab instead of the zone numbers. So for example, a locator result of "601 Westtown Rd, 52" would show up as "601 Westtown Rd, West Goshen Township". Is there a way to configure a list of aliases? Perhaps within the mxml?

Thanks,
Ben

Error executing print task

$
0
0
While using flex viewer in configuring a flex app, I added a print widget. I did all the configuration of the print well (atleast I guess I did) but when I run the application and try to use the print widget it comes up with an error.

What am I doing wrong?

Thanks

Possible to have more than one logo added to the main config file?

$
0
0
Hi all,

I was wondering if it's possible to have more than one image/logo to be included in the header controller. In my experience, the application only recognizes the first logo tag in the main config file and ignores the other one. Is there any way to include more than one? I am hoping for a horizontal layout, such that a second image is laid to the right of the first one.

Thanks,

David

ArcGIS Viewer for Flex

$
0
0
Dear All,

I want to changes
Attachment 26190 this from Horizontal to Vertical, could someone help me.

thank you
Attached Thumbnails
Click image for larger version

Name:	ArcGIS Viewer for Flex.jpg‎
Views:	N/A
Size:	5.2 KB
ID:	26190  

ArcGIS Viewer for Flex

$
0
0
Dear All,

I want to change view of ArcGIS viewer (Attachment 26191) for Flex from Horizontal to vertical, could some one help me.

thank you
Attached Thumbnails
Click image for larger version

Name:	ArcGIS Viewer for Flex.jpg‎
Views:	N/A
Size:	5.2 KB
ID:	26191  

Link absent between feature in pop-up window and feature row in Attribute Table

$
0
0
When I hit feature on the map pop-up window open but this feature didn't link with this feature row in attribute table. I can see this link in edit mode only. When I select the feature on the map in the edit mode the row with this feature in attribute table is selected also.
Is it a bug?

Such link work also in Viewer for Silverlight.

Thanks

Datum Transformation in Arcgis 10.1 Amersfoort_To_WGS_1984_2008_MB

$
0
0
I am facing the problem that the Datum Transformation isn't working from Amersfoort_To_WGS_1984_2008_MB

I found that:
Name = Amersfoort_To_WGS_1984_2008_MB
Wkid = 108457
From this pdf: http://resources.arcgis.com/en/help/...formations.pdf

I use this code to check if there are 3 values in the url, and i look if it is the wkid of RD_NEW
Code:

if (textualMapPointAttributes.length == 3)
{
//var wkid:Number = parseFloat(textualMapPointAttributes[2]);
                wkid = parseFloat(textualMapPointAttributes[2]);
      if(wkid==28992){
                rdCheck = true;
        }
                                       
}

And then in the project function this is the code:

Code:

else
                {
                    var projectParams:ProjectParameters = new ProjectParameters();
                    projectParams.geometries = [ geometry ];
                                        trace("input = "+ geometry.spatialReference);
                    projectParams.outSpatialReference = map.spatialReference;
                                        trace("output = "+ map.spatialReference);
                                        if(rdCheck == true){
                                                trace("rdcheck=true");
                                                var datumTransform: DatumTransform = new DatumTransform();
                                                datumTransform.wkid = 108457;
                                                datumTransform.wkt = "Amersfoort_To_WGS_1984_2008_MB";
                                                projectParams.datumTransform = datumTransform;
                                                projectParams.transformForward = true;
                                                trace("rdcheck=done");

                                                /*projectParams.datumTransform.wkid = 108457;
                                                projectParams.transformForward = true;*/

                                        }
                                        trace(projectParams.datumTransform);
                                       
                                        trace(projectParams.transformForward);

                                        GeometryServiceSingleton.instance.project(
                        projectParams, new mx.rpc.Responder(projectionSuccessHandler,
                                                            projectionFailureHandler));

                    function projectionSuccessHandler(geometries:Array):void
                    {
                        trace("gelukt "+geometries[0]);
                                                responder.result(geometries[0]);
                    }

                    function projectionFailureHandler(fault:Fault):void
                    {
                                                trace("gefaald "+fault);

                                                responder.fault(fault);
                    }
                }

This is my output:

wkid is 28992
input = SpatialReference[wkid=28992]
output = SpatialReference[wkid=102100]
rdcheck=true
rdcheck=done
[object DatumTransform]
true

gefaald [RPC Fault faultString="Error executing project" faultCode="500" faultDetail=""]

Anyone know what i am doing wrong?

Or are these 3 values the only ones possible from the documentation

Quote:

datumTransform property

public var datumTransform: DatumTransform

Since : ArcGIS API 3.0 for Flex



The well-known ID or a json object specifying the datum transformation to be applied on the projected geometries. If specified, a value for transformForward parameter must also be specified. If not specified, a search is made through a set of default GeoTransformations. Currently, the following default transformations are used when applicable:


•esriSRGeoTransformation_NAD_1927_TO_NAD_1983_NADCON, forward and reverse, WKID=1241
•esriSRGeoTransformation_NAD1983_To_WGS1984_1, forward and reverse, WKID=1188
•esriSRGeoTransformation_NAD1927_To_WGS1984_4, forward and reverse, WKID=1173

This is an optional property and is only available with ArcGIS 10.1 and higher.
Thanks in advance

ArcGIS Viewer - Logo Distorted?

$
0
0
I have recently upgraded to version 3.4, and I have noticed that my County Seal is now distorted in to an oblong shape rather than round.

Is there a way to correct this without going in to the source code or creating a new County Seal with extended edges?

As always, all help and suggestions are sincerely appreciated.

Possible to use icons instead of attribute values in Popuprenderer? FlexViewer 3.0

$
0
0
I have a map-click popup using a custom Popuprenderer.mxml that returns records for recreational activities at a given site.

Instead of displaying the standard field name and value (Figure1), I'd like to display icons, which would also link to recreational homepages.

I'm a Flex newbie and am wondering if this is possible to do in the keyvaluegroup of the popuprenderer.msml? Or somehow code it in the search.mxml that references the <field> tags in the corresponding .xml?

Figure 1 is the default popup result.
Figure 2 is the "look" I'm going for, but without the functionality. I used the <description> tag to get it this far.

Many thanks from a beginning Flex programmer --

Meg
Attached Thumbnails
Click image for larger version

Name:	Figure1.JPG‎
Views:	N/A
Size:	43.5 KB
ID:	26217   Click image for larger version

Name:	Figure2.JPG‎
Views:	N/A
Size:	33.0 KB
ID:	26218  

Printing Widget with secure problem -URGENT

$
0
0
After started using proxy to secure all my map services and print widget not working anymore. It shows error message "esriJobFailed" and on server log will show "Error executing tool. Layer "Parcel":Failed to create layer from service at . . .".
I used different taskurl to test it and all get the same error message - 1) Used print service with the credentials for the secure service from this site: http://resources.arcgis.com/en/help/...00005q3000000/ for my new 2) Used default Export Web Map Task from ArcGIS Server(http://xxx/rest/services/Utilities/P...b%20Map%20Task).

Besides that, I used fiddler & HttpFox to monitor the traffic. From HttpFox content got this ({"jobId":"j81442677e2c24d0a94639ff12ea5157b","jobStatus":"esriJobFailed","messages":[{"type":"esriJobMessageTypeInformative","description":"Submitted."},{"type":"esriJobMessageTypeInformative","description":"Executing..."},{"type":"esriJobMessageTypeError","description":"Failed."}]})

If open map services to public (no secure) then print widget start working again. All other widget all running correctly for setting proxy to true on xml (<useproxy>true</useproxy>).

Does anyone know how to solve this problem with secure services? Thank you.

Basic Documentation

$
0
0
Where can I find basic documentation on how to use the Flex Viewer. You know like zoom in and zoom out. I want to have something available for users when we roll out our system in the next couple of months.

Dynamic Legend item sort order

$
0
0
This is regarding Robert Scheitlin's Dynamic Legend widget located here. I am using the 3.2 uncompiled version. My operational layers seem to be displaying in no particular order in the widget. I'm sure it's based on something, but right now it seems quite random.

Can anyone explain the logic behind the sorting of items in the Dynamic Legend widget, and how/where I might go about changing or controlling it? I'd really like to have them in the order they are listed in the Map Switcher widget.

Thanks,
Aaron

Flex Viewer Framework import in Flash Builder/Flex SDK

$
0
0
I found this blog entry (http://esrimobile.blogspot.com/2013/...adobe-air.html) which shows how you can take a flex viewer setup, import it into Adobe Flash Builder, and turn it into an adobe air app which can then be used for both Android and IOS phones. My question is this, in the Blog entry it uses the flex viewer framework and the widgets/config files from another pre developed flex viewer app. You just add the whole thing into Flash Builder through a new project import. How can I get my widgets/app into this framework so I can upload it into flash builder and build my adobe air apps? After I follow the configuration from this page (http://resources.arcgis.com/en/help/...0000001q000000), I can see my widgets/config in the bin/debug menu a ways down under the flash builder project name.

Is it just something where I can copy or paste, or is it something where I will need to reconfigure all the src files?

I am using adobe flexviewer 3.4 and adobe flash builder 4.7 premium (with flex sdk 4.6)

Thanks in Advance!

Clinton Cooper

Adding security to Extract Data Widget

$
0
0
I am creating a viewer that is accessed by many people with varying needs. I want to allow other GIS departments that we work with to be able to download shpfiles or DWGs of data, but do not want general users to be able to do so. Is there a way to lock out certain users from accessing this widget?

Google Maps Flex Component

$
0
0
Hi all..

I understand that adding Google maps as a base map is a violation of Google's terms of service.

I was browsing through the internet and found this,
http://www.flexappsstore.com/index.p...&product_id=59

What's a "GOOGLE MAPS FLEX COMPONENT"?

Can it be integrated with ArcGIS Flex Viewer? Can I make it as one of my Flex Viewer's base maps once i purchase it?

Lastly I would like to know if there is a legal way of having Google Maps as one of my base maps if the google maps flex component above is a different flex thing..


Thanks

Changing the Header Controller Location

$
0
0
Hi All...

I want to change Location of Header Controller Widget with Directions Widget, could someone help me how to do it?

thank you

Google Analytics with Layer loaded updates

$
0
0
I am trying to check wich layers are turned on by the customers,

But when i use the AppEvent.LAYER_LOADED it only calls the function when i start the viewer, but not after i turn some layers on or off.

Here's my code:
AppEvent.addListener(AppEvent.LAYER_LOADED, listenHandler);
if (event.type == AppEvent.LAYER_LOADED)
{
trace("event type is layerLoaded");
if(logLayers)
{
trace("werkt hoor!");
}
} trace("event type is "+ event.type);

And at the startup i get this back:

event type is layerLoaded
werkt hoor!
event type is layerLoaded
event type is layerLoaded
werkt hoor!
event type is layerLoaded

But i get nothing back when i am using the viewer. and turn layers on or off..

Is this the way of doing it? or is there another way of checking when a layer is turned on or off?

Maybe with an addEventListener on map.getLayer("").visible = true of something?

Any help would be appreciated,

Thanks in advance
Viewing all 2097 articles
Browse latest View live