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

eSearch+shape file

$
0
0
I want to apply search by using "shape file"(.shp) instead of drawing polygon or line. Is there anyway ? I,m using eSearch widget.

Flexviewer popup javascript window.open

$
0
0
hi,
i'm using application builder. I'm trying to customize popup.xml where when i'm click the link, it will open new popup window like javascript window.open. Is there any example that i can use it..

Thank

Copyright text

$
0
0
Hi hi,
I want to put copyright text at the bottom of my viewer, just like on this one: http://atlas.lmi.is/kortasja/
Do you know how this is done? I know about the copyright widget but I would prefer it this way.

Localization with widgets in subfolders

$
0
0
Hi,

I have created 3 new widgets that I put in a new subfolder I created within the "widgets" folder of Flexviewer. I then changed the "local" argument in the Flex Compiler to fr_FR, like this:

-locale fr_FR -source-path=locale/{locale} -keep-all-type-selectors=true -debug=true

but the compilation fails when it reaches my widgets, with the following error message:

Code:

[SWF] /widgets/Navigation/NavigationWidget.swf - 450,551 bytes after decompression
[SWF] /widgets/OverviewMap/OverviewMapWidget.swf - 334,252 bytes after decompression
[SWF] /widgets/MapSwitcher/MapSwitcherWidget.swf - 438,733 bytes after decompression
[SWF] /widgets/HeaderController/HeaderControllerWidget.swf - 389,955 bytes after decompression
[SWF] /widgets/SubfolderName/Recherche/Recherche.swf - 476,346 bytes after decompression
Error: Could not find compiled resource bundle 'ViewerStrings' for locale 'fr_FR'.
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundle()
        at mx.resources::ResourceManagerImpl/installCompiledResourceBundles()
        at mx.core::FlexModuleFactory/installCompiledResourceBundles()
        at mx.core::FlexModuleFactory/docFrameHandler()
        at mx.core::FlexModuleFactory/docFrameListener()

Is this because of the subfolder? How can I make the ViewerStrings resource bundle work with my custom widgets?

Thanks

Flex Viewer Source Code on GitHub has moved to new location

Add help to widget

I lost tooltip

$
0
0
I lost tooltip all my in widgets, when you change language-locale to es_ES (Spanish), I compiled my preoyecto and I have nothing,
Anyone have any ideas???
Thanks

Vers 3. viewer uncompiled

Background color for controlBarLayout

$
0
0
Hi,
I am trying to change background color of controlBarLayout in my application. But I am not able to change it. When I changed the theme then also the color of that horizontal bar is not changing. I have an attached a screenshot along with this post.

Can anyone help me with this.

Thank you in advance.

Regards
Sonali
Attached Thumbnails
Click image for larger version

Name:	screenshot.jpg‎
Views:	N/A
Size:	23.3 KB
ID:	19837  

Changing picture component of the print layout

$
0
0
I have a task to modify the print widget to change the picture component of custom print service layout. Currently the flex viewer 3.0 is programmed to change author, title and copy right of the layout. Is there a sample code to change the picture component of the print layout?

Thanks!

Is there a maximum # of attachments that can be added per feature in the Edit Widget?

$
0
0
Hi,
We would like to add a number of attachments to a feature in the Edit Widget. We were concerned as to how many attachments can be added per feature? It would probably not be greater than twenty attachments.
Thanks,
Janie

Sorting IdentifyWidget attribute display order

$
0
0
A question was posted on the IdentifyWidget comments board about sorting the display order of the returned attributes. If you don't mind modifying code, this is an easy change to make.

Note that this only affects the order of attributes for layers not explicitly defined in the IdentifyWidget.xml file. Layers which are defined in the config XML will have their attributes displayed in the order that they are defined in the fields list.

In the onResult function of the IdentifyWidget.mxml, locate the following code:

Code:

for (fld in obj){
        try{
                value = obj[fld] ? String(obj[fld]) : "";
        } catch (error: Error) {
                value = "";
        }
        value = value.replace(/>/g,"&gt;").replace(/</g,"&lt;");
        content += "<b>" + fld + ":  </b>"+ value + "<br>";
}

Change it to:

Code:

var fldArray:ArrayCollection = new ArrayCollection();

for (fld in obj){
        try{
                value = obj[fld] ? String(obj[fld]) : "";
        } catch (error: Error) {
                value = "";
        }
        value = value.replace(/>/g,"&gt;").replace(/</g,"&lt;");
//        content += "<b>" + fld + ":  </b>"+ value + "<br>";
        // Instead of just printing out the fields as they appear, add
        // them to an array so they can be sorted.
        fldArray.addItem({name:fld, value:value});

}

// Sort the attributes
var sortField:SortField = new SortField("name"); // alpha, asc
var sort:Sort = new Sort();
sort.fields = [sortField];
fldArray.sort = sort;
fldArray.refresh();
var cur:IViewCursor = fldArray.createCursor();
while (!cur.afterLast) {
  content += "<b>" + cur.current.name + ":  </b>"+ cur.current.value + "<br>";
  cur.moveNext();
}

Graph in identify widget

$
0
0
Hi,

I was wondering is it possible to add a graph of figures over time into the Identify widget? Is this possible and how would I go about it?
I have field headings 2012, 2011, 2010, 2009 and 2008 each would have a figure and I want to produce a graph as part of the Identify results.
I've been able to configure the Identify widget to use in my webviewer and was hoping to use this rather than the pop-ups.
However if I cannot add graphs I may be forced to go down the pop-ups route.

Many thanks

Rachel

token security for custom widgets

$
0
0
I have implemented token based security and it works with the basic flexviewer. However when I use the custom - Robert Sheitlin's and others (non-ESRI) widgets I am still getting prompted for a username/password which I do not get with the basic viewer. Is there a way to implement this for all widgets?
Thanks.

Editing popup windows, PopUpRendererskin

$
0
0
Hi,

I was hoping someone could help me. I have created a popup using Viewer for Flex for my web viewer to show images taken in the field and a clickable external link (code below) and it works well.

<?xml version="1.0" ?>
<configuration>
<title>{DESCRIPT}</title>
<description>
<![CDATA[<a href='{Hyperlink_Relative_Path}'><u>Open in New Window</u></a>
<img src=’{jpg_popup_Path}’ width=250>
]]>
</description>

<fields>
<field name="PHOTOTYPE"/>
<field name="FIELDDATE"/>
<field name="DESCRIPT"/>
<field name="Hyperlink_Relative_path"/>
<field name="jpg_popup_Path"/>
</fields>

</configuration>

<!--
See pop-up documentation at
http://links.esri.com/flexviewer/popups
-->

What I now want to do is edit the size of the popup window for these popups. I know from previous posts that I need to edit PopUpRendererSkin.mxml I have looked at that and think I have identified the aspects of code I need to edit

<s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:esri="http://www.esri.com/2008/ags"
xmlns:supportClasses="com.esri.ags.skins.supportClasses.*"
width="600"
maxHeight="400"

preinitialize="skin_preinitializeHandler(event)">

And
<supportClasses:PopUpMediaBrowser id="mediaBrowser"
height="400"
width="600"

skinClass="com.esri.ags.skins.supportClasses.PopUpMediaBrowserSkin"/>

I come unstuck with following this. I am completely new to flash builder and have no experience editing skins and struggling to pick up the concepts of it for popups. I understand it for widgets were you have an .xml file and a .swf file pointed to in your widget container, however popups don’t point to a .swf so I am confused by their architecture.

I guess what I need to know is what steps I need to execute so that I have a working popup for my images that I can trial and error different popup window sizes for.

Any help would be greatly appreciated.
Liam

General Question on updating eSearch etc widgets -

$
0
0
Hi all - I'm wondering how everyone handles updating the new versions of Robert's helpful widgets. I have the eSearch and eDraw and eEverything widgets loaded, but have created multiple copies of each that are project specific, each with different xml variables.

Is there a way to see the changes to the new code versus the old, and then just update those areas as opposed to having to re-do the edits to the .xmls and mxmls that I've customized?

Many thanks, Meg

Disable "All Layers" menu option in Enhanced Identify Widget?

$
0
0
I have Robert's Enhanced Identify Widget downloaded and implemented in my Flex Viewer 3.0 application and it is wonderful. The only issue that I have is often times when using the "all layers" menu option for "Identify From" it causes the application to crash with an error message telling me that "Shockwave Flash has crashed". It only does this when using the "all layers" menu option, it works just fine when choosing a specific layer to identify from. I have the latest plugin of Flash on my browser.

Is there:

A) A way to prevent the crash from happening?

or

B) A way to disable the "all layers" menu option so the user is forced to chose a layer to identify from?

All help is greatly appreciated!

Disabled REST and Popups not working

$
0
0
I just disable my REST and my Popups are not working. (I accounted for my Queries and Search function beforehand and disabled AMF . As I was expecting the issues with query ) At any rate, I noticed in HTTPFox the popup still assembles a query using AMF? Is there anyway of modifying the popup not to use AMF or any other way to address this ?

interact with a UI widget

$
0
0
Hello, I am using ArcGIS Viewer For Flex 3.0, I'd like to recover my UI widgets in my AS code. Let me explain, from a custom widget, I'd interact with a UI widget (eg dynamically hide the button "basemap" of MapSwitcherWidget ...)

Ie, a command similar to:
ViewerContainer.getInstance (). WidgetManager.getWidget ...
Since this one only returns the widget included in <widgetcontainer>

Is that possible?

thank you

How to add axis labels to line chart in popup for Flex

$
0
0
Hi,

I was wondering is it possible to add axis labels to a line chart in the pop ups for flex.
I want to add the years across the bottom because without using the mouse to hover over each figure in the graph users won't know what it means. I can foresee users complaining that the chart means nothing to them by just looking at it without labels.
Is this possible to do?
Many thanks

Rachel

Query Widget - images

$
0
0
Hey,

I am looking for help. I make a interactive map of building. I use Query Widget to see info bout every room. And I want to put a image of this room in window query results. Anybody knows how to do it? I create a field in attribute table, where I put a url link to photo, and I put a cod line: <field name="URL" alias="URL"> but there is only a text of link(for example www.abc.com/picture.jpg). But I want to see this picture.

PLEASE HELP!

Greetings

Maciej
Viewing all 2097 articles
Browse latest View live