esri / arcgis-viewer-flex Goto Github PK
View Code? Open in Web Editor NEWSource code for ArcGIS Viewer for Flex - a great application framework for web applications.
Home Page: http://links.esri.com/flexviewer
License: Apache License 2.0
Source code for ArcGIS Viewer for Flex - a great application framework for web applications.
Home Page: http://links.esri.com/flexviewer
License: Apache License 2.0
Take into account available space when determining the MapSwitcher basemap/operational layer pop-up position.
Is it possible to add WFS service support for flex viewer 3.2?
This will require the 3.2 API which has the new "Directions" API component.
Defer SingleLineSearch geocoding logic to Geocoder component.
Note: Requires ArcGIS API for Flex 3.2.
For services that do not have the displayfield set, nothing is shown, else only 1 field(column) is shown.
See:
http://forums.arcgis.com/threads/75522-Search-widget-results-not-showing-up-in-3.1-attribute-table
Not sure if this is just me not following documentation or if it's a bug.
How can I enable returnZ in flex viewer 3.0?
I have a model that generate a 3d line by this steps: user draw a line, then model calculate 3d line from a DEM file.
Everything is ok in my model and I can run geoprocessing service by .Net web application, but when I run my geoprocessing service by flex viewer 3, it return this error:esriJob failed
I checked service log file and found this error message:
geometry can not have z value
How can I enable returnZ in flex viewer 3.0?
Please help me.
Regards
Steps to reproduce:
Use Map#zoomTo wherever applicable.
I,m working on a model that it has upload capability, but flex's geoprocessor has not browse capability. In flex's geoprocessor, client should add an address that start with "http". I think uploading a file to a http address isn't reachable for clients.
Add "swatches/symbol/legend" support in the TOC component to give both the "More..." in the Map Switcher widget and the Layer List widget a more "legend" style.
This problem is discussed in these two threads in the forum:
http://forums.arcgis.com/threads/73800-Issues-upgrading-Flexviewer-3.1-(uncompiled)
http://forums.arcgis.com/threads/76137-Header-widget-display-issue-when-upgrading-to-3.1
For some of us users there is an TypeError: Error #1009
at com.esri.viewer.components.toc.tocClasses::TocMapLayerItem/createChildren()
When loading the 3.1 viewer with a cleared browser cache with sublayer popups in dynamic layers. The error stops the application from loading the widgets properly. When refreshing the page it works until browser cache is cleared.
I haven't been able to reproduce this using only public Esri map services, but using the 3.1 viewer (compiled or uncompiled version) and only change the map services in the config.xml to my own services I get this problem. The same services and popups worked fine in 3.0.
More details can be found in the threads in the forum.
I don't know if you prefer users to report issues in the forums or here on github or both?
/Mattias
Add Danish, Hebrew, Lithuanian, and Portuguese-Portuguese locales to the included Viewer locales. These locales are also planned to be added to the API as part of the next release (3.2).
Add support for <shareresults/>
, similar to SearchWidget.mxml and QueryWidget.mxml.
The HeaderControllerWidgets single line search executes the geocode search along with the find layers that you have configured. I suggest that the desired behavior is that when you have find layers configured that the geocode search would not execute.
Currently, the GP widget will process all output parameters via GPResultImageLayers if there is a result map service available. Only output parameters that are supported by result map services (GPFeatureRecordsetLayer and GPRasterDataLayer) should be processed this way.
The GP widget will use the RMS by default, therefore ignoring the renderer configuration. Adding an option to avoid usage of a GP server's result map server will help honor the renderer configuration when displaying results.
Hi
There is not a standard identify widget for flex. Identify is an important tool for GIS. Please add it to flex 3.2.
Regards
Add support for building the Viewer on the command line using the Apache Ant tool.
Adobe Flash Builder Premium is required.
When choosing a non web mercator basemap, geocoding fails by giving an inaccurate result.
The results from the geocoding service should be reprojected first.
http://resources.arcgis.com/en/help/rest/apiref/project.html
Sample configuration:
<basemaps>
<layer label="Topographic" type="tiled" visible="true" url="http://services.arcgisonline.nl/ArcGIS/rest/services/Basiskaarten/Topo/MapServer"/>
</basemaps>
Replace mx:ComboBox with s:DropDownList
Steps to reproduce:
Sample QueryWidget config:
<?xml version="1.0" ?>
<configuration>
<layer>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0</layer>
<query/>
<titlefield>POP2000</titlefield>
<linkfield>HOUSEHOLDS</linkfield>
<refreshrate/>
<zoomscale/>
<shareresults>false</shareresults>
<orderbyfields>POP2000</orderbyfields>
<fields all="false">
<field name="POP2000" alias="POP2000"/>
</fields>
</configuration>
Sample SearchWidget config:
<?xml version="1.0" ?>
<configuration>
<zoomscale>50000</zoomscale>
<shareresults>false</shareresults>
<layers>
<layer>
<name>Name</name>
<url>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/0</url>
<expression>ObjectID = [value]</expression>
<textsearchlabel>Label</textsearchlabel>
<titlefield>HOUSEHOLDS</titlefield>
<fields>
<field name="HOUSEHOLDS" alias="HOUSEHOLDS"/>
</fields>
<orderbyfields>HOUSEHOLDS</orderbyfields>
</layer>
</layers>
</configuration>
These locales are also planned to be added to the API as part of the next release (3.2).
If there is a layer in the main config.xml with sub layers and a feature layer referenced below it in the config an error will be thrown with the following stack trace...
TypeError: Error #1010: A term is undefined and has no properties.
at com.esri.viewer.managers::MapManager/infoReady()[C:\Source\Git\Conoco\FlexViewer\src\com\esri\viewer\managers\MapManager.mxml:1125]
at com.esri.viewer.managers::WidgetManager/widgetConfigLoadedHandler()[C:\Source\Git\Conoco\FlexViewer\src\com\esri\viewer\managers\WidgetManager.mxml:709]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at com.esri.viewer::BaseWidget/configResultHandler()[C:\Source\Git\Conoco\FlexViewer\src\com\esri\viewer\BaseWidget.as:567]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()
at mx.rpc::Responder/result()
at mx.rpc::AsyncRequest/acknowledge()
at DirectHTTPMessageResponder/completeHandler()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
The error occurs here... https://github.com/ArcGIS/ArcGISViewerForFlex/blob/master/src/com/esri/viewer/managers/MapManager.mxml#L1123
The problem is that m_operationalLayerIndex exceeds the bounds of the m_operationalLayers array in this instance, and that happens because for each sublayer the m_operationalLayerIndex value is incremented without adding a new layer to the m_operationalLayers array.
In older versions of the viewer m_operationalLayerIndex would not get incremented for sublayers, so this problem would never occur. It seems like the issue came about with the addition of this massive and complicated parseArray function.
I've been debugging this issue for two full work days now... The code is very difficult to follow and I haven't been able to come up with a hack to get it to work correctly, let alone an actual solution that I could submit a pull request for.
I found one reference to someone else having what I believe is the same issue...
Some hacks to get it to work are suggested, but as the original poster finally stated at the bottom they are not sufficient in all cases, and certainly not sufficient in my case.
From my perspective, this is a critical bug. I'm still gathering information and if I can fix it, I will submit a pull request, but it's been very difficult to get enough understanding to even know what the correct fix would be. At this point, I really just need to come up with a hack to make it work. Please look into this and if you know what the issue is, I would LOVE a fix for it.
When using the PrintWidget, it is not possible to exclude a layer within a map service from the legend
See:
http://forums.arcgis.com/threads/73816-Print-Widget-3.1-Question
To reproduce:
Note: The "F" in features looks like a "T"
Seems how the Indeterminate state of the checkbox is never used in the TOC component, should that code not be removed or better yet replaced with a scale dependent state like that of ArcMap. Attached it the overlay that I use in my TOC Widget to represent scale dependency.
And the some code for my class that extends CheckBoxIcon:
if (scaleDep) {
var cTransform:ColorTransform = new ColorTransform();
cTransform.alphaMultiplier = 0.3
var rect:Rectangle = new Rectangle(0, 0, 14, 14);
var myBitmap:BitmapData = new sdIcon().bitmapData;
myBitmap.colorTransform(rect, cTransform);
graphics.beginBitmapFill(myBitmap, null, false, false);
graphics.drawRect(0,0,w,h);
graphics.endFill();
}
Bing map and Esri base maps are poor and have not good resolution. Is it possible to add google map as base map to flex viewer? I know google don't publish WMS services and just allow user to use google map by google api. But esri should try to access google's license.
Incomplete search results are displayed when focusing on the search component while executing a geocode + find search.
Using the SingleLineSearch, the result graphic sometimes shows up and sometimes it don't. When using keyboard arrows and pressing enter for one search result in the result list the graphic appear, and if I'm typing a searchterm that only gets one result the graphic appear as well. But when clicking with the mouse on a result in the result list, the info window shows and the map zoom in to the result but no graphic appear.
I did some debugging and it seems like when using the mouse and clicking one search result, at first the code runs as expected but then the resultList_changeHandler function is triggered again causing the showSearchResultOnMap function to run again with no searchResult object. So the result graphic is removed and no new graphic is added since the searchResult is null this second time the function is triggered.
There's a thread in the forum about this here:
http://forums.arcgis.com/threads/74045-configuring-searchbox-in-HeaderControllerWidget-3.1
But since there was some other questions there I started a new thread about this here:
http://forums.arcgis.com/threads/75682-Searchbox-result-graphic-bug
/Mattias
Since the underlying sample service is no longer working.
RTE caused by additional change event being dispatched when clicking on a search result.
Steps to reproduce:
This will help with localization (and is what application builder already uses).
Update Viewer version.xml for 3.2 development.
This initially came through forum post - http://forums.arcgis.com/threads/74268-Splash-widget-Flex-viewer-3.1.
Add support to upload files (10.1+ services) for GPDataFile input parameters.
See steps outlined by Dasa at http://forums.arcgis.com/threads/64114-Uploads-capability-on-Geoprocessor?p=222032&viewfull=1#post222032
More background info at http://forums.arcgis.com/threads/73949-Uploading-and-using-data-to-a-geoprocessing-service
When using a geocode service other than the one configured by default (i.e. on in a different WKID) the results appear to be reprojected inaccurately and appear on the map at 0,0
don't work with simply wms or wmts layer.
my specific case: I've a wms layer served by mapproxy and wmts layer served by geoserver (gwc).
the overviewmap is blank.
if i add a layer osm, the overviewmap work properly, but the base layer (wms and wmts) aren't show anymore (white screen).
maybe it's a correlation from this 2 scenario.
example config.xml to try the issue:
<layer label="osm" type="osm" />
<layer label="GeoMapproxy2-wmts" type="wmts" visible="true" imageformat="png"
url="http://127.0.0.1:8080/geoserver/gwc/service/wmts"
servicemode="KVP" layerid="cite:mapnik_osm_demo"/>
the overview widget is set to default: use the selected basemap for the overview map.
The parameter name is being used for the result image layer's name, which is not desirable.
The following line:
resultImageLayer.name = shareResults ? paramName : "hiddenLayer_" + paramName;
should be:
resultImageLayer.name = shareResults ? outputParam.label : "hiddenLayer_" + paramName;
The ASDoc for the Flex Viewer is published as part of the ArcGIS Viewer for Flex Resource Center: http://resources.arcgis.com/en/help/flex-viewer/apiref/
Add FlexFormatter.properties for use by the Flex Formatter plugin.
TOC.as, EditWidget.mxml and AttributeTableWidget.mxml have conditionals similar to:
if ( x < index < y )
that should be changed to:
if ( x < index && index < y )
Give the Flash plugin focus when the page loads. This is only supported in IE:
http://helpx.adobe.com/flash/kb/give-keyboard-focus-embedded-movie.html
Also give the Map focus when the Viewer starts up so that keyboard navigation works without clicking the Map.
Currently, one can set the visibility of output GP parameters for the Geoprocessing widget, but it doesn't seem to be honored.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.