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

properties in a widget

$
0
0
hi

I am writing a widget using flashbuilder 4.6 , I want to return a Boolean value as result of this widget operation which will be used by other widjet in the application. how to return a value from a customized widget. can we create a property of the widget to return the value.
regards
nadeem

Printing Widget Data

$
0
0
What is the best approach for printing data contained inside a widget? I am looking at the print widget, but I am under the impression it only prints maps and map data.

Thanks,
Ron

Capture event result immediatly

$
0
0
I have the following code:

Code:

                        for each (var fieldInfo:PopUpFieldInfo in popUpInfo.popUpFieldInfos)
                        {
                                        if (fieldInfo.visible && fieldInfo.fieldName == "ID")
                                        {
                                                var imgx:String = "http://localhost/fv30/photos/" + formattedAttributes[fieldInfo.fieldName] + ".JPG";
                                                IOErrorEventHandler(imgx);
                                        }
                                        if (validJpgInfos == "false"){
                                                validMediaInfos = null;
                                        }
                                        Do the rest of function
                                        from here down....

                        }
                       
                        private function IOErrorEventHandler(imgx:String):void {
                               
                                var loader:URLLoader = new URLLoader();
                                loader.dataFormat = URLLoaderDataFormat.BINARY;
                                loader.addEventListener(IOErrorEvent.IO_ERROR, ioErrorHandler);
                                loader.addEventListener(HTTPStatusEvent.HTTP_STATUS, httpStatusHandler);
                                var request:URLRequest = new URLRequest(imgx);
                                loader.load(request);
                        }

                        private function ioErrorHandler(event:IOErrorEvent):void {
                                validJpgInfos = "false";
                        }
                       
                        private function httpStatusHandler(event:HTTPStatusEvent):void {
                                if (event.status == 404){
                                        validJpgInfos = "false";}
                        }

The first if statement creates a url string and passes it to the IOErrorEventHandler() function.
This function attempts to load the url and I have listeners on it for error and HTTP status. If I get an http status 404, I want to assign validJpgInfos="false". (could use the IOErrorHandler instead, but would prefer to base it on status code).

Anyway, the problem I am having, is the when the first if statement evaluates to true, it runs the handler, then returns back to the next if statement above and finishes the rest of the function, then it executes the ioErrorHandler and httpStatusHandler functions.

How do I get it to immediately run the handler function(s) "before" returning back to the original calling function? Basically, the second if statement is dependent upon the result of the httpStatus, so I need a way to pass that back to it.

Sure it's got to be simple, but sure isn't coming to me today..

thanks for any ideas,

R_

Is it possible to run a model made in arcmap 10.1 and run as a widget in Flex viewer

$
0
0
Is it possible to make a model in model builder in arc map 10.1 and the publish that model as a service for Arc GIS Server 10.1,
and can i use published model in flex viewer 3.0 as widget or some other service???
Please help me if any respectable member knows about it.

Operational Layers for Aerial

$
0
0
I'm trying to create a Basemap Group for our Aerial Imagery, but I'm having some difficulties with all the coding in the ConfigManager.as file. I'm trying to create something similar to the <operationallayer> tag, where all the aerials would be listed in a drop-down list (by year).

I've tried to find some samples or examples online, but I didn't find anything. I'm sure I'm not the only one who has tried to accomplish this. Can anyone point me to the right direction?

Identify Widget 3.0.1f - results & white exclamation problem

$
0
0
I have some problems using the identify widget. 1) Everytime I try to identify a feature, I will get this message "No Results Found" before the results show up. I try to modify the code on ArcGISDynamicMapServiceLayer but still get the same message.
2) Somestimes I will get a White screen with exclamation mark after the identify results show up.
Have any ideas how to solve this problems? Thanks for the time to look into it.

Configuring the Initial Settings - ArcGIS Online for Organizations

$
0
0
Hello,

This might seem a silly question to most but I cannot figure out for the life of me how to get started only having an ArcGIS Online for Organizations account. I do not have a server so I'm not sure of the settings I need when flexviewer initially starts. I have web maps I can integrate and I also know how to integrate specific services that I have published in my organization account but I do not know which folders to set or url to point to in the initial settings. Can someone explain this to a non-developer?

Thank you,
Jarom

BookmarkWidget to be leaked?

$
0
0
Has anyone seen this error message?

warning: The class widgets.Bookmark.Bookmark has been used in a call to net.registerClassAlias() in _BookmarkWidget_FlexInit. This will cause widgets.Bookmark:BookmarkWidget to be leaked. To resolve the leak, define widgets.Bookmark.Bookmark in the top-level application.

I'm wondering if it's related to the "gray circle of death" which I experience intermittently when using the Bookmark widget.

WMTS - how to use?

$
0
0
Hi all,

I know I will look silly to many of you... I´m stuck with this problem and I just hope someone will help...

My problem is that I´m not able to use WMTS. I know it´s different than WMS - I read about necessity of using proxy page, but I don´t know how to make it work (no idea how proxy page works, how to use it, how to specity the config.xml,...)... So please, can anybody help? (yes, I read the documentation, but it seems it just made a bigger mess in my head)

WMTS I want to use:
Service and Cappabilities

Big thanks for helping!

identify widget version 3.0 raster layer.

$
0
0
I have published a map on server consisting of 10 layers of which only one layer is published as raster the rest is published as feature layer. I used the identify widget. when i used the all layers option then the this widgets shows me data for all the layers in the map with the names of the layers and data in their respective fields. however it does not show me the layer name of the raster layer. However if I use the name of raster layer in the identify config.xml to take the information of the raster layer only then it returns me No result found. however if mentioned any other feature layer separately it returns the info for that feature layer. its only for the raster layer that it shows no result found when i use the name of the raster layer and do nt use the all layers. Any suggestion please.

eSearch Spatial Search Buffer

$
0
0
The spatial search works fine in the eSearch - but, the actual buffer graphic is not displayed on the map - it used to be and now it;s not... In Firebug everything looks fine, geometries are returned...and, like I said, the tool works you just cannot see the buffer layer.
Any ideas?

Add WMS Service in flex Viewer

$
0
0
Hi guys i have a problem.
I have a WMS Service that has been published with a product of Intergrapfh.
This is the wms service:

http://xx.xxx.xxx.xx/reflector/servi...etCapabilities

and i add this service in flex viewer with this method. In config.xml i add the string
HTML Code:

<layer label="NRCan" type="wms" skipgetcapabilities="true" version="1.1.0" wkid="102100"
                  url="http://xx.xxx.xxx.xx/reflector/service?map=mywms.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetCapabilities"
                  visible="true" visiblelayers="Satellite"/>

but when i run the application the wms it's not visibile.
Any help is great
Thanks

Flex 3.0 with Flash Builder 4.5

$
0
0
I have Flash Builder 4.5 and we want to upgrade our Flex 2.2 to 3.0. Do I need Flash Builder 4.6? Can I run Adobe Flex 4.6 SDK, with Flash Builder 4.5?

Graphic with custom Extent

$
0
0
Dear Friends
I have a graphic element.I want this graphic element visibility should increase with zoom in out.If Zoom in it shoud increase size and if zoom out it should decrease size.please help..Thanks

Resizing of Widget Icon in Header.

$
0
0
Hi,
I am trying to decrease my widget Icon which appears on the header, I tried but not getting any idea ,can any one please suggest me how can i do it.


Thanks and Regards,
Shabbir

ArcGIS Online Basemaps not visible after adding in maps from server

$
0
0
Hi,
I'm using Flexviewer 3 and ArcGIS 10.1. When I create a new application I can view all the basemaps from ArcGIS online fine, but when I add my own maps in and click on any of the ArcGIS online maps, it just shows a blank screen.
Does anyone have an idea why this is, is there something blocking it that I have to allow access somewhere?
I've the firewall turned off on the server and I still have this problem.

Thanks

Rachel

Near Query Question

$
0
0
I would like to enhance a flood zone widget to find the distance to the nearest flood zone. It would be a single polygon to polygon near query(buffer ???). That would return the distance in feet from a parcel of property to nearest 100 year flood zone. The result would be like: This parcel is 2,314 feet from the nearest flood zone.

Can anyone get me started - as to something in the api I could use to query this near distance?
If all else fails, I was thinking of mutiple buffer queries at incrementing distances until it found a hit.
But, this seems too taxing to do so many queries. Maybe there is a sample some where. thanks

Spatial Data Server (SDS) support in SFV

$
0
0
Hi :-)

We have recently upgraded to 10.1 and are looking at the new Spatial Data Server (SDS).

We have managed to get it installed and working from arcgis.com webmap, but we are struggeling with getting it to work with SFV (v. 3.0) defined as a Featrure layer.

Is SDS supported by SFV? If so how to specify?

Regards,
Kjetil

dispatching Event

$
0
0
while learning about how to dispatch a customized event i have found that following two methods are mentioned for dispatching event. these are:
dispatchevent which require an event object to be passed in it and the receiver needs to register for this event by using add listener methods. this methodology an event object model. however i also have found that
AppEvent.dispatch is also used for dispatching event, this is based on the event bus architecture.however this methods needs to import com.esri.viewer.AppEvent
I am confused which one is the right method to use for dispatching a customized event for message communication.
any suggestion is appreciated.
regards

eSearch URL search & print widget error

$
0
0
Good morning,

I am getting a funky error when trying to print when the url contains a search string. It returns an error of 'esriJobFailed'. I've poked around firebug and fiddler, but nothing really sticks out.

If I attempt to use the print widget from just my root url, everything works
http://gis.linncounty.org/maps
use 4901 Windmill Dr in the default address search and zoom to the result and print

If I attempt to use the print widget from the url that contains the search above it throws the error.
http://gis.linncounty.org/maps/index...datagrid=false

Has anybody else seen this? I've been able to reproduce this with the most current versions of IE and Firefox.

Thanks for any insight.

Cory
Viewing all 2097 articles
Browse latest View live