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

Flex Viewer Performance Issue

$
0
0
Background: I am serving out several services through ArcGIS for Server 10.1, with LDAP Security for Users/Roles. Using. Flex Viewer 3.3 as a web app. Data is stored in an SDE database on SQL 2012.

That said I have all services/security working at the moment without a problem, except for one. I am working on an Web Application for managing cemetery grounds. I've achieved scales between 1:600 and 1:50 creating my own tiling package with an Ortho.

Now the feature class that is giving me the trouble is the plots for the cemetery. There are over 2,000 separate plots with about 20 fields. Whenever I view the feature in Flex Viewer it only loads about half of it in. If I look at it in java, as ArcGIS/Rest/Services allows, the entire feature class loads just fine.

Is this a performance flaw in Flex? I've tried loading the Service with different colors and optimized performance as far as Analysis in ArcGIS Desktop is concerned. Ultimately I'd like end-users to edit the plots as necessary from flex. Help? Advice?

Selected features in PrintWidget

$
0
0
I am using source code for Flexviewer 3.2 .
I have downloaded Robert's 3.2 versions for Identify and eSearch.
If I identify (ie select) a feature then that feature is highlighted
red using <simplelinesymbol color="0xff0000" alpha="0.8" width="4"/> as defined in identify.xml .
When i Print, the selected feature is still shown red as you would expect.
If I select the same feature using either graphical or text search then the feature is highlighted red again using the same simplelinesymbol definition in esearch.xml .
However when I now Print, the feature is not shown red but is highlighted turquoise as in default mxd selection color.
Whatever page layout or file format i use it is always turquoise.
I have also used both symbology definitions (ie layer and overall default) within esearch.xml and it is still highlighted turquoise within the Print for both line and point features.
Any ideas?
Attached Files

All features in the layer from feature service are invisible in the Flex Viewer

$
0
0
I create feature service wirh 2 layers. But all features in the 1 layer are invisible. I can see feature's attributes only in attribute table.

I add new feature in this layer and I can see this feature in ArcMap, but not Flex Viewer.
I can see feature in this layer from feature service in Silverlight Viewer only when this feature is selected.

Any help please.

Thanks

Editing kml symbols

$
0
0
Howdy!
I brought in a few kml files into my flexviewer map, and I do not like the symbols that automatically populate. Is there a way to change them? I would like to pick a simple symbol and have them all look the same.

eMapSwitcher Remove Dropdown Options

$
0
0
I would like to remove the entire arrow and all dropdown options on the map switcher that give the ability to see description, move layers, etc. I have a very basic application and don't want users to see anything unnecessary.

Thanks!

Add Flex Component to Map

$
0
0
I'm trying to add a text input box to the map, but can't really figure out how to do it. So what happens is the user clicks on the map and a text input box should appear there. I've got code like this:

Code:

                           
// Get screen point
var mapPoint:MapPoint = geom as MapPoint;
var screenPoint:Point = map.toScreen(mapPoint);


// Create text box
var textInput:TextInput = new TextInput();
textInput.text = "test";
textInput.visible = true;
textInput.x = screenPoint.x;
textInput.y = screenPoint.y;
this.addChild(textInput);

So that will add the text input, but its adding it to the widget (I'm using Flex Viewer), so I want to be able to add that to the map somehoe, but not sure how to do it?

Editing feature problem

$
0
0
Hi,

I have a problem with Viewer for Flex 3.3 Russian, EditWidget, ArcGIS Server for WG 10 sp5.

I can create new features, and I can update new feature' s geometry and attributes . But I couldn't edit old features created in ArcMap in geodatabase in some feature classes. My Flex Builder or Web application freeze and 2-3 minutes later I can see attribute form without attributes with labels Delete and Cancel only. Feature is selected but feature geometry is also without nodes.

I can edit only some features in another feature class.

And I can edit this feature service correctly in Silverlight Viewer for ArcGIS.

Any help please
Thanks

Linking Images Stored on a Seperate Server

$
0
0
Greetings!

I will preface this by stating that I've only been using the ArcGIS Viewer for Flex for the past few weeks, so bear with me on this.

I have a fairly standard application with a few of the canned widgets up an running on our local network, nothing special. For the past several days I've been investigating/attempting ways to link scanned documents (That are saved as .TIFF images) to a point feature class I have (In my mind, something similar to hyperlinking in ArcMap) but to no avail. I've tried doing so through the "Configure Pop-ups" in the Maps tab, as well at trying to get creative with the Identify Widget that's available through ArcGIS Resources. I can't really get either of them to work.

My first question is this: is it possible to (not really knowing the proper term) "Hyperlink" documents from a separate server. The documents reside at location such as this: P:/Engineer GIS/Projects/Section Corner... (The path is much longer, but you should be able to get the picture) while my Flex Application resides on a separate server: E:/Survey2. The linkes are saved via a field called "Hyperlink" in the point attribute table. If I do so through the Pop-up Configuration, I just get an empty box where the image should be and if I do so through the Identify Widget, I get a link that doesn't go anywhere. Also, I am using FlexViewer 3.2 with ArcGIS Server 10.1.

So, I guess my question is: can the Flex Application link to documents on different server? Or, would I have to place them within the E:/Survey2 folder and have to rework the link field?

If further clarification is needed I can provide it, at this point I'm not sure what it would be, so I haven't uploaded any screenshots or provided any code. Any guidance regarding this is greatly appreciated!








Kevin Laughlin
GIS Specialist
Wood County Engineers Office

Problem with the Thematic Widget

$
0
0
Hi @ all

I got a problem with the Thematic Widget in Flex.
As you see in the attachment, the main Panel doesnt display the different classes.
All classes are null-null...

Anybody got an idea what the problem might be?

Thanks in Advance!
Attached Thumbnails
Click image for larger version

Name:	Legend.jpg‎
Views:	N/A
Size:	34.1 KB
ID:	25216  

Incorporating SOAP services

$
0
0
Does anyone know how to refernce a SOAP service is Flex 2.5? I have some base coding that I was given, but I'm unsure how to incorporate it into my viewer. The source code I was given seems like it should be separate files, but I'm really unsure.

Any help is appreciated.

Code:

POST /RCRS_Data_Feed/RCRSDataService.asmx HTTP/1.1
Host: www.dot511.state.pa.us
Content-Type: text/xml; charset=utf-8
Content-Length: 200
SOAPAction: "http://bpr.dot.state.pa.us/GetEventFeed"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetEventFeed xmlns="http://bpr.dot.state.pa.us/">
      <keyValue>RCRSdataFeedsPA@prod</keyValue>
      <userName>PASAFER</userName>
      <userPass>PASAFER_#_rcrsData_8726</userPass>
    </GetEventFeed>
  </soap:Body>
</soap:Envelope>

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 200

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetEventFeedResponse xmlns="http://bpr.dot.state.pa.us/">
      <GetEventFeedResult>string</GetEventFeedResult>
    </GetEventFeedResponse>
  </soap:Body>
</soap:Envelope>

GET /RCRS_Data_Feed/RCRSDataService.asmx/GetEventFeed?keyValue=RCRSdataFeedsPA@prod&userName=PASAFER&userPass=PASAFER_#_rcrsData_8726 HTTP/1.1
Host: www.dot511.state.pa.us

HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: 200

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://bpr.dot.state.pa.us/">string</string>







<?xml version="1.0" encoding="utf-8" ?>
 <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://bpr.dot.state.pa.us/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://bpr.dot.state.pa.us/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
 <wsdl:types>
 <s:schema elementFormDefault="qualified" targetNamespace="http://bpr.dot.state.pa.us/">
 <s:element name="GetEventFeed">
 <s:complexType>
 <s:sequence>
 <s:element minOccurs="0" maxOccurs="1" name="keyValue" type="s:string" />
 <s:element minOccurs="0" maxOccurs="1" name="userName" type="s:string" />
 <s:element minOccurs="0" maxOccurs="1" name="userPass" type="s:string" />
 </s:sequence>
 </s:complexType>
 </s:element>
 <s:element name="GetEventFeedResponse">
 <s:complexType>
 <s:sequence>
 <s:element minOccurs="0" maxOccurs="1" name="GetEventFeedResult" type="s:string" />
 </s:sequence>
 </s:complexType>
 </s:element>
 <s:element name="GetWinterConditionsFeed">
 <s:complexType>
 <s:sequence>
 <s:element minOccurs="0" maxOccurs="1" name="keyValue" type="s:string" />
 <s:element minOccurs="0" maxOccurs="1" name="userName" type="s:string" />
 <s:element minOccurs="0" maxOccurs="1" name="userPass" type="s:string" />
 </s:sequence>
 </s:complexType>
 </s:element>
 <s:element name="GetWinterConditionsFeedResponse">
 <s:complexType>
 <s:sequence>
 <s:element minOccurs="0" maxOccurs="1" name="GetWinterConditionsFeedResult" type="s:string" />
 </s:sequence>
 </s:complexType>
 </s:element>
 <s:element name="string" nillable="true" type="s:string" />
 </s:schema>
 </wsdl:types>
 <wsdl:message name="GetEventFeedSoapIn">
 <wsdl:part name="parameters" element="tns:GetEventFeed" />
 </wsdl:message>
 <wsdl:message name="GetEventFeedSoapOut">
 <wsdl:part name="parameters" element="tns:GetEventFeedResponse" />
 </wsdl:message>
 <wsdl:message name="GetWinterConditionsFeedSoapIn">
 <wsdl:part name="parameters" element="tns:GetWinterConditionsFeed" />
 </wsdl:message>
 <wsdl:message name="GetWinterConditionsFeedSoapOut">
 <wsdl:part name="parameters" element="tns:GetWinterConditionsFeedResponse" />
 </wsdl:message>
 <wsdl:message name="GetEventFeedHttpGetIn">
 <wsdl:part name="keyValue" type="s:string" />
 <wsdl:part name="userName" type="s:string" />
 <wsdl:part name="userPass" type="s:string" />
 </wsdl:message>
 <wsdl:message name="GetEventFeedHttpGetOut">
 <wsdl:part name="Body" element="tns:string" />
 </wsdl:message>
 <wsdl:message name="GetWinterConditionsFeedHttpGetIn">
 <wsdl:part name="keyValue" type="s:string" />
 <wsdl:part name="userName" type="s:string" />
 <wsdl:part name="userPass" type="s:string" />
 </wsdl:message>
 <wsdl:message name="GetWinterConditionsFeedHttpGetOut">
 <wsdl:part name="Body" element="tns:string" />
 </wsdl:message>
 <wsdl:portType name="RCRSDataServiceSoap">
 <wsdl:operation name="GetEventFeed">
 <wsdl:input message="tns:GetEventFeedSoapIn" />
 <wsdl:output message="tns:GetEventFeedSoapOut" />
 </wsdl:operation>
 <wsdl:operation name="GetWinterConditionsFeed">
 <wsdl:input message="tns:GetWinterConditionsFeedSoapIn" />
 <wsdl:output message="tns:GetWinterConditionsFeedSoapOut" />
 </wsdl:operation>
 </wsdl:portType>
 <wsdl:portType name="RCRSDataServiceHttpGet">
 <wsdl:operation name="GetEventFeed">
 <wsdl:input message="tns:GetEventFeedHttpGetIn" />
 <wsdl:output message="tns:GetEventFeedHttpGetOut" />
 </wsdl:operation>
 <wsdl:operation name="GetWinterConditionsFeed">
 <wsdl:input message="tns:GetWinterConditionsFeedHttpGetIn" />
 <wsdl:output message="tns:GetWinterConditionsFeedHttpGetOut" />
 </wsdl:operation>
 </wsdl:portType>
 <wsdl:binding name="RCRSDataServiceSoap" type="tns:RCRSDataServiceSoap">
 <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
 <wsdl:operation name="GetEventFeed">
 <soap:operation soapAction="http://bpr.dot.state.pa.us/GetEventFeed" style="document" />
 <wsdl:input>
 <soap:body use="literal" />
 </wsdl:input>
 <wsdl:output>
 <soap:body use="literal" />
 </wsdl:output>
 </wsdl:operation>
 <wsdl:operation name="GetWinterConditionsFeed">
 <soap:operation soapAction="http://bpr.dot.state.pa.us/GetWinterConditionsFeed" style="document" />
 <wsdl:input>
 <soap:body use="literal" />
 </wsdl:input>
 <wsdl:output>
 <soap:body use="literal" />
 </wsdl:output>
 </wsdl:operation>
 </wsdl:binding>
 <wsdl:binding name="RCRSDataServiceHttpGet" type="tns:RCRSDataServiceHttpGet">
 <http:binding verb="GET" />
 <wsdl:operation name="GetEventFeed">
 <http:operation location="/GetEventFeed" />
 <wsdl:input>
 <http:urlEncoded />
 </wsdl:input>
 <wsdl:output>
 <mime:mimeXml part="Body" />
 </wsdl:output>
 </wsdl:operation>
 <wsdl:operation name="GetWinterConditionsFeed">
 <http:operation location="/GetWinterConditionsFeed" />
 <wsdl:input>
 <http:urlEncoded />
 </wsdl:input>
 <wsdl:output>
 <mime:mimeXml part="Body" />
 </wsdl:output>
 </wsdl:operation>
 </wsdl:binding>
 <wsdl:service name="RCRSDataService">
 <wsdl:port name="RCRSDataServiceSoap" binding="tns:RCRSDataServiceSoap">
 <soap:address location="https://www.dotdev7.state.pa.us/RCRS_Data_Feed/RCRSDataService.asmx" />
 </wsdl:port>
 <wsdl:port name="RCRSDataServiceHttpGet" binding="tns:RCRSDataServiceHttpGet">
 <http:address location="https://www.dotdev7.state.pa.us/RCRS_Data_Feed/RCRSDataService.asmx" />
 </wsdl:port>
 </wsdl:service>
 </wsdl:definitions>

Google® Street View Widget

$
0
0
All,

Here is the next installment to my long list of widgets. I never really wanted to add to the list of several Street View Widgets, but as it's predecessors have lacked updating when new version of Flex Viewer are released and me wanting to add more features, I finally decided to do one myself.

The Google Street View Widget version 3.3 for Flex Viewer 3.3 allows you to view Google Street View Panoramas in a popup window. The widget use Google Maps API Version 3 and has almost all the API options for the Street View Panorama that are available in the API configurable in the widgets xml. A lot of attention has gone into the UI (User Inferface) and UX (User Experience) of this widget and a lot of cross browser testing has been done. Tested on Safari for windows 5.1.7, Internet Explorer 9, Opera 12.15, FireFox 21.0, and Chrome 27.0.1453.110 m.

Configurable features include:

* hidestreetviewvwidowwhenminimized - This is a true or false value and determines if the graphic on the map and the Google Street View window are hidden when the widget is minimized.
* width - The width of the popup widow that is opened.
* height - The height of the popup widow that is opened.
* apikey - The Google Maps API Key that you must obtain to use this widget.
https://developers.google.com/maps/d...torial#api_key
* addresscontrol - is a true or false value and determines if the Google Street View Address Control is visible.
It has an attribute of controlposition that defines where in the popup window the control is placed.
* clicktogo - is a true or false value and determines if the Google Street View will move to the location clicked.
* disabledoubleclickzoom - is a true or false value and determines if the Google Street View will zoom into the
location on the panorama where the user double clicks.
* imagedatecontrol - is a true or false value and determines if the Google Street View will display the date of the
panorama image was taken along the bottom of the window with the copyright info.
* linkscontrol - is a true or false value and determines if the Google Street View will display the movement arrows
and street names on the panorama for navigation purposes.
* pancontrol - is a true or false value and determines if the Google Street View pan Control is visible.
It has an attribute of controlposition that defines where in the popup window the control is placed.
* zoomcontrol - is a true or false value and determines if the Google Street View zoom Control is visible.
It has an attribute of controlposition that defines where in the popup window the control is placed and a
controlstyle attribute that determines the size of the control.

* All text that the widget uses is configurable in the xml to allow for internationalization of the widget.

So here it is: http://www.arcgis.com/home/item.html...4e7bdf75fee29b

Drawing Tool Error

$
0
0
I've created my own drawing tool widget, which worked fine in Flex API 3.0/Flex Viewer 3.0, but 3.1+, it doesn't work correctly and I get this error when I place a picture marker symbol onto the map:

Code:

TypeError: Error #1006: value is not a function.
        at com.esri.viewer.managers::MapManager/drawEndHandler()[C:\Data\Development\Viewer\src\com\esri\viewer\managers\MapManager.mxml:1553]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at com.esri.ags.tools::DrawTool/map_clickFirstHandler()[C:\checkout\flex_api3\api\src\com\esri\ags\tools\DrawTool.as:852]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()
        at com.esri.ags.layers.supportClasses::LayerContainer/dispatchMapMouseEvent()[C:\checkout\flex_api3\api\src\com\esri\ags\layers\supportClasses\LayerContainer.as:268]
        at com.esri.ags.layers.supportClasses::LayerContainer/mouseUpHandler()[C:\checkout\flex_api3\api\src\com\esri\ags\layers\supportClasses\LayerContainer.as:337]

It does still place the marker symbol on the map, but I do use multipoint and I can't finish the drawing by double clicking because of this error.

Editing with some conditions

$
0
0
Hi everybody,

I'm kind of beginner with ArcGIS Viewer for Flex.
I'm currently working on a project developed on the last version of ArcGIS Viewer For Flex Code Source and the API 3.3. I use the Flash Builder 4.6 and the SDK Flex 4.6.0.

My problem is now that I've published a Feature Service with only one table so that it can be editable but on this table is a field: VALIDATE (boolean one). I would like that my entity on this table could be editable only if the VALIDATE field is false, and once this entity is validated, it could'nt be editable anymore.

My second problem is that I work with a sepcific structure of database so I've a field (TABLE_ID) on my feature service table that should be unique. So when someone is editing this table, I would like to test if the TABLE_ID is already existing or not.

Thanks in advance for all (sorry for my english, I'm not a native-english speaker)

How to launch the application builder

$
0
0
How do I launch the application builder from the Windows Start menu or from the desktop shortcut? I don't see a shortcut or an exe or anything close to "App Builder" or "Flex", etc. Thanks.

Token does not work on my related table in my dynamic service, requires me to log in.

$
0
0
I have a secure dynamic map service that includes parcel data and the parcel data is related to building information table. I am using a Token for the secure service and I have set the token in the Layer tag. In my viewer, when I identify a parcel, a box pops up requiring me to log into the secure service to view the related building information. I would like the token to apply to the related table and users not have to log in. I am using Flex Viewer 3.3.

Thanks!
Allison

ExternalInterface.call in windows 7

$
0
0
I know this is probably not the best place to ask, but hoping/wondering if someone has came across the same issue, and found a solution.

I am using ExternalInterface.call("window.open",#,#,#) to open a web page in a new browser window.

has been working just fine for some time now in windows XP (still is for the most part), however, we are now getting upgraded to windoze 7, and it is behaving differently.

Now, when I click on the feature that involks the ExternalInterface.call, I get three, new windows opening, all with the same URL.

anyone found a cause/fix for this yet?

Thanks for any help,

R_

PS, we are forced to use IE 8, so that is the browser being used.

Swipe Spotlight Widget - How can I reorder the active layer list?

$
0
0
I am using the 3.2 compiled version of the Viewer for Flex and the Swipe Spotlight Widget.

Is it possible to reorder the list of active layers in the drop down box?

Currently the active drop down list in my widget is backwards. It is in the exact opposite order as my main list in the config file.

Thanks for any suggestions.

Haskett

Upgraded to viewer 3.3 struggling with links in widget header

$
0
0
Hi,

I just upgraded my application from flex viewer 2.4 to 3.3. I had a custom splash screen which was just a bunch of changes to the splash widget. This works fine when application loads, but when I click the about link after my app has loaded it doesn't pick up my splash widget and still shows the default esri one? Anyone experienced similar issues?

Thanks,

Graham

Link List Widget

$
0
0
Looking for something like what's attached but this won't work for 3.1? I'm not certain who authored it originally but they posted it in the forums for use. I don't code and compile so I'm stuck with free widgets. Wondering if anyone knows of something out there that accomplishes this; I couldn't find anything in my searches.

I did find Robert Scheitlin's link widget but it's a single link per widget and what I have has a tree type of list for multiple links within a tree?

Any help would be appreciated!

Thanks
Chad
Attached Files

Flex Viewer Shortcut Keys

$
0
0
I know theres a bunch of short keys with the Flex Viewer e.g. press F goes to full extent. Just wondering where in the Flex Viewer these are set? so I could add my own ones and change existing ones.
Viewing all 2097 articles
Browse latest View live