Comments (7)
Merge branch '#12_add-legend-items-to-toc' into develop 743d268
from arcgis-viewer-flex.
The MapSwitcherWidget.mxml need to pass the includeLegendItems var to the toc component. and the includeLegendsItems var needs to be Bindable.
from arcgis-viewer-flex.
Sarthak, I have ran into a situation where layerLegendInfo is null in the getLayerLegendInfo function and in the getLayerLegendInfos function when you check if layerLegendInfo.layerLegendInfos exists.
I use a RasterCatalog layer for testing as it does not produce a LayerLegendInfo;
Also if you use this layer it will have a (?) beside it (which to me is undesirable)
from arcgis-viewer-flex.
Sartak,
I have found if you add label = (legendItemInfo.label)?legendItemInfo.label:" "; when the TocLegendItem is created then you can avoid the DEFAULT_LABEL of the TocItem.
from arcgis-viewer-flex.
Robert,
Are you getting the same response on getLegendResult() for the layerLegendInfos(has one layerlegendInfo as expected):
(com.esri.ags.layers.supportClasses::LayerLegendInfo)#0
layerId = "Polygons"
layerLegendInfos = (null)
layerName = "Polygons"
layerType = (null)
legendItemInfos = (Array)#1
0#2
height = NaN
label = ""
symbol = (com.esri.ags.symbols::SimpleFillSymbol)#3
alpha = 1
color = 7556096
outline = (com.esri.ags.symbols::SimpleLineSymbol)#4
alpha = 1
color = 7237230
style = "solid"
width = 1.3333333333333333
style = "solid"
values = (null)
width = NaN
maxScale = 0
minScale = 0
visible = true
"I have found if you add label = (legendItemInfo.label)?legendItemInfo.label:" "; when the TocLegendItem is created then you can avoid the DEFAULT_LABEL of the TocItem."
Yes, i thought about that too, wasn't sure if we wanted to have a different default for legend items. Will try and come up with something.
from arcgis-viewer-flex.
Sarthak,
Yes for that layer I do get the same response. But for a layer like a raster catalog layer it just returns something like this: {"layers":[]}
Robert
from arcgis-viewer-flex.
Ok, will take care of that use case and update accordingly.
from arcgis-viewer-flex.
Related Issues (20)
- Geoprocessing Choice List Names HOT 1
- Specific subtypes do not display correctly in Attribute Table HOT 1
- Subtypes with domains do not display correctly in Attribute table, always takes the fields default domain HOT 2
- Support for CustomTextElements in Print HOT 1
- user defined font not working HOT 1
- user defined font not working HOT 1
- NIM101542 Enhance the Flexviewer documentation to include that the application would fail to show a SAVE dialog box when the Geoprocessing widget output label contains special characters. HOT 1
- Add tab to Headercontroller and Geoprocessing widget HOT 5
- mehranshir93 commented a minute ago HOT 1
- Tab+I think failed last issue... HOT 1
- NIM103414 The Draw widget shows incorrect measurement or alters the measurement for the last drawn polygon if the area or measurement of one of the polygons is altered and a dynamic map service is being used as a basemap in the ArcGIS Viewer for Flex application. HOT 5
- how to add new item on the menu option in the attribute table? HOT 1
- BUG-000084634 This is just a test bug, please ignore
- BUG-000084634 This is just a test bug, please ignore
- BUG-000084634 This is just a test bug, please ignore
- BUG-000084634 This is just a test bug, please ignore
- BUG-000084634 This is just a test bug, please ignore
- BUG-000084634 This is just a test bug, please ignore
- Initial extent customizing HOT 3
- BUG-000084634 This is just a test bug, please ignore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arcgis-viewer-flex.