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

Is it possible to track when a map service is turned on/off in a Flex app?

$
0
0
Is it possible to track when a map service is turned on/off in a Flex app? We'd like to track which map services are being used within our Flex app. I know Google Analytics can provide usage info for the landing page (the index.html), but is it possible to be able to track when each map service is turned on or off?

Thanks!

Brian

Closing an InfoWindow deletes PictureMarkerSymbol

$
0
0
I've been chasing this issue for a while and have finally nailed it down. I've built a FeatureLayer full of points and assigned each point a PictureMarkerSymbol, much like the Search widget. Each symbol's built from a bitmap something like this:

Code:

[Embed(source="assets/images/myImage.png")]
private var myImage:Class;
...
...
var graphic:Graphic = new Graphic(myPoint);
graphic.symbol = new PictureMarkerSymbol(myImage, myImage.width, myImage.height);

// Note - This also works:
graphic.symbol = new PictureMarkerSymbol("assets/images/myImage.png", 16, 16);

Works great. Now I need to enhance the symbol so I make a bitmap, tweak it, then build a PictureMarkerSymbol from that. It seems to work but I have problems with the InfoWindow. When I click the point it works fine, but when the window closes the point vanishes and can't be clicked again. Here's a simple case to illustrate.

Code:

[Embed(source="assets/images/myImage.png)]
private var myImage:Class;
...
...
var graphic:Graphic = new Graphic(myPoint);
var bitmap:Bitmap = new myImage();
graphic.symbol = new PictureMarkerSymbol(bitmap, bitmap.width, bitmap.height);

I don't understand why this doesn't work. I've tried all sorts of variations and no matter what I do, if I build a PictureMarkerSymbol from an in-memory Bitmap it won't work with an InfoWindow.

Any ideas what I might do differently? If it helps, I've modified SearchWidget.mxml to reproduce this behavior. Just run a search, view an InfoWindow, then watch your point vanish.
Attached Files

Add USGS Topos to basemap gallery

$
0
0
I would like to add the USGS Topo cached service to the basemap gallery. I know the URL:
http://services.arcgisonline.com/Arc...Maps/MapServer

Is there a config file that lists all the online basemaps? I don't want it to be the basemap at startup, I just want it to be available to users to switch to.

PictureMarkerSymbol source Object type

Need Simple hypelink on Identify Widget

Flex 3.1 Authentication Issue

$
0
0
Hi all,

New to GIS server. I have built a app using Flex viewer. When I browse to it, it prompts for a username and password. I enter my credentials and the maps loads showing the layer file. I contacted support and they had me generate a token and edit the config.xml for the application to contain said token. The app worked for a few days but now is back to prompting for credentials. I generated the token again but it still does not work.

Does anyone know why it stopped working or why I cannot recreate it and make it work again? Or does anyone have a different way of setting it up? I attempted to make the web tier authentication work but was unsuccessful. We are viewing the maps over HTTPS. Thank you in advance for any info you can provide.

Jeff

using PopUpInfo for a layer with dynamic join

$
0
0
I've added a layer with dynamic join -- very similiar to (http://resources.arcgis.com/en/help/...0000088000000/). However, when I try to use PopUpInfo to show the field value, even though I tried different combination of layername.fieldname or fieldname, I still got no luck. Can anyone guide me this?


Thank you in advance.

Xiaowen

Still get Sandbox security error on ESRI services

$
0
0
So I still randomly get this message:

SecurityError: Error #2048: Security sandbox violation: http://gis01.wch-rcc.com/wch_map/index.swf cannot load data from http://services.arcgisonline.com/Arc...pServer?f=json.

and now this one:

SecurityError: Error #2048: Security sandbox violation: http://gis01.wch-rcc.com/wch_map/index.swf cannot load data from http://geocode.arcgis.com/arcgis/res...eServer?f=json.

Of course, I can remove the reference to the world imagery and that sandbox error will go away, but it appears as if the geocode one is scattered throughout the fv.

So, since it doesn't appear that anyone can figure out why "this" ESRI server denies us randomly, is there a "better" arcgis server/sampleserver out there that one can point to that is at least consistant (either allow or deny, not both depending on current phase of moon, tide direction, and whatever else seems to be causing this)?

R_

Export layer to KML/KMZ file format in arcviwer for flex

$
0
0
Hi,

Do we have any option to select the features from point features class and export to KML/KMZ file format in arcviwer for flex.

Please suggest any options in the available widgets to export the point features to KML format in the flex viewer application

Thanks
Rama Krishna, Nulu

Export features to KML in Arcviwer for Flex

$
0
0
Hi,

Do we have any option to export the selected features to KML/KMZ file in arcviwer for flex application

Thanks

Print Quality issues in FlexViewer 3 and ArcGIS 10.1

$
0
0
Hi,
I had great hopes for the print quality improving in Flex 3 and ArcGIS 10.1, using the application builder I've gone into the Print Widget, ticked Print with ArcGIS Server and added the rest service of Export Web Map Task to the Task URL and hit load.
This I thought would be enough but when I check the quality of the print compared to the same print without using the print with ArcGIS Server it's no better, in fact I can't see any real difference.

Am I missing something here is there something else I have to change to get it to use ArcGIS Server when printing?

Thanks
Rachel

FV 3.0 Print Widget Issue

$
0
0
I'm having issues when printing my FV 3.0 map to PDF. I'm using the standard Print Widget. The PDF file is successfully created in the ...\arcgisserver\directories\arcgisoutput\Utilities\PrintingTools_GPServer folder, but a "Page cannot be displayed" error is generated, in the new tab, on the browser side. I'm am not having any issues viewing printed maps in my browser if I print maps to JPG or PNG. I'm using IE8 and I am able to view PDF files from within my browser from other sites, which leaves me to believe it's not an IE8 issue. Here is my Print Widget code:

<?xml version="1.0" ?>
<configuration>
<taskurl>https://<myservername>/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task</taskurl>
<title visible="true"/>
<copyright visible="false"/>
<author visible="true"/>
<usescale defaultvalue="" visible="true">false</usescale>
<layouttemplates defaultvalue="Letter ANSI A Landscape"/>

<labels>
<titlelabel>Printed Maps</titlelabel>
<authorlabel>Notes</authorlabel>
</labels>
</configuration>


Any ideas? Thanks

New Basemaps 3.1 dropdown display question

$
0
0
Is there a way to have the graphic of the basemaps when rolled over by the cursor to be moved to the front of a widget? If I have a widget open right below the basemaps then I can't see the basemaps below the widget.

Chart Widget Example

Adobe Air

$
0
0
Has anyone implemented their Flex viewer application with Adobe Air? If so, how did you go about getting it to work? I am not understanding it very well.

Thanks

Add KML and/or GPX widgets available?

$
0
0
All,

I would like to provide widgets for our staff to add KMLs and GPX files to our maps. I have found the currently available widgets for adding KMLs and GPX files, but neither will work for us.

The KML widget available will only pull web-hosted KML files. I need it to open files that are saved on a user's computer.

The GPX widget has not been updated in some time and the sample widget is not operating properly.

Can these capabilities be found in another widget?

Ashley

Help getting my flex project on our website

$
0
0
I just finished building my first web map in the flex viewer and I would like to get the project up on our website at work. I was hoping someone here might be able to guide me through the process. I am using Arcgis Server 10.1 in conjunction with Windows Server 2008 R2 Standard and IIS 7.

I have no trouble viewing the map in a web browser internally on our network, but it is not visible to any computer that tries to visit the site via the internet.

Just as a warning, this is the my first experience using ArcGIS server and I have no experience building a website so I might need someone to walk me through this...very slowly.

Duplicate identify result on Identify Widget

$
0
0
When you double click to identify a parcel by point (or anything on your layer) and you will get duplicate results. Results are all depend on how many times you have clicked to identify. You will get same result 4 times if you click 4 times. Does anyone has this problem?

Point Features are being Offset in Flex App

$
0
0
It appears that point features are either being offset or aren't projecting. All other features geometry types appear to be in the correct location. Has anyone encountered this problem and what have you done to resolve it? All our data is in NAD 27 and as I understand ESRI basemaps are in Web Mercator. In Arcmap the features align in the right location just not in the web app. I have tried setting the dataframe to Projected WGS84 Webmercator and the appropriate tranformation from NAD 27 to WGS84 and tried it the opposite way.

I save our maps as sd files then load them to the arcgis server 10.1, from there i use the flex viewer app builder for windows to create the application.

any help would be appreciated. Attachment 22384
Attached Thumbnails
Click image for larger version

Name:	offet.JPG‎
Views:	N/A
Size:	11.0 KB
ID:	22384  

Color Scheme Change

$
0
0
I don't know how else to title this so please excuse that right off the bat.

I have a flex application that all of a sudden switched up in colors on me. Please see image of the awful white controls.

Attachment 22383

Does anybody know which widget, control, xml, etc., this part of the application is for me to take a look at and see why it changed the color on me all of a sudden? Maybe at one point, I got too clicky or careless and either deleted something or typed something within the line of code for that, but I am having a very difficult time trying to revert back to the blue that it was as shown behind the other widgets on the top menu. It also shows plain white as the background (and it should be bluish) for the contents of the widgets as well (see image)

Attachment 22385

Thanks!
Attached Thumbnails
Click image for larger version

Name:	color.JPG‎
Views:	N/A
Size:	14.8 KB
ID:	22383   Click image for larger version

Name:	widget.JPG‎
Views:	N/A
Size:	24.8 KB
ID:	22385  
Viewing all 2097 articles
Browse latest View live