POST
|
Hi Robert, I didn't think it was that hard, but I could have this wrong too. Hopefully this provides enough context for what I did: _foldOrUnfoldLayers:function(a,b){h.forEach(a,function(a){this._foldOrUnfoldLayer(a,b)},this)},_onCkSelectNodeClick: function(layerInfo, ckSelect, evt) {
if(evt.ctrlKey || evt.metaKey) {
if(layerInfo.isRootLayer()) {
this.turnAllRootLayers(ckSelect.checked);
} else {
this.turnAllSameLevelLayers(layerInfo, ckSelect.checked);
}
} else {
if(layerInfo.parentLayerInfo && layerInfo.newSubLayers.length === 0 && ckSelect.checked){
var layerOptions = {};
var rootLayerInfo = layerInfo.getRootLayerInfo();
rootLayerInfo.traversal(lang.hitch(this, function(subLayerInfo) {
if(subLayerInfo.parentLayerInfo &&
subLayerInfo.parentLayerInfo.id === layerInfo.parentLayerInfo.id &&
!this.isLayerHiddenInWidget(subLayerInfo)) {
layerOptions[subLayerInfo.id] = {visible: false};
if(subLayerInfo.id === layerInfo.id){
layerOptions[subLayerInfo.id] = {visible: true};
}
} else {
layerOptions[subLayerInfo.id] = {visible: subLayerInfo.isVisible()};
}
}));
rootLayerInfo.resetLayerObjectVisibility(layerOptions);
}else{
layerInfo.setTopLayerVisible(ckSelect.checked);
}
}
evt.stopPropagation();
},_onPopupMenuClick:function(a,b,c,d){this._changeSelectedLayerRow(c);b&&"opened"===b.state?b.closeDropMenu():(this._hideCurrentPopupMenu(),b&&(this.currentPopupMenu=b,b.openDropMenu()));this.operationsDropMenu&&
I'll have to see what I can get from the Developer's Edition also.
... View more
06-19-2017
02:59 PM
|
0
|
0
|
1195
|
POST
|
Hi Robert, I'm downloading the code from AGO, making the change, and launching up to the web server.
... View more
06-19-2017
11:06 AM
|
0
|
2
|
1195
|
POST
|
No luck so far Robert Scheitlin, GISP. Are there any other alterations that I should keep in mind? I'm just making the change from the downloaded code straight out of ArcGIS Web App Builder.
... View more
06-19-2017
08:53 AM
|
0
|
4
|
1195
|
POST
|
Hello rscheitlin, Where in the LayerListView.js is this code supposed to be placed? Thank you! Colter
... View more
06-15-2017
03:14 PM
|
0
|
6
|
1195
|
POST
|
I would like to limit my end-users to see the single feature in a service that they are supposed to edit using a unique attribute. There is a sample here (Create Map with Custom ArcGISDynamicMapServiceLayer Layer Definitions) where this works on dynamic map services. However, I need this to happen to my editing layer. Thinking a step ahead, the app will ultimately receive this attribute as either a search string or a URL parameter. If anyone has worked on a similar function, I would love to discuss it as well! Thanks - Colter
... View more
07-24-2014
12:20 PM
|
0
|
0
|
585
|
POST
|
Hello All, I am working with a customized version of Robert Scheitlin's Dynamic Legend widget. I am trying to have the widget display the sublayers within a group layer in my map service (see screenshot for context - I'd like to see the 'Zoning" sublayers display). However, I have not had much luck with this. I do notice that if I set a map layer so that visible="true" in the config.xml, all of the sublayers will display in the legend, even if I don't activate the group layer. Removing the filterOutSubLayer function (in DynamicLegendWidget.mxml) does not affect the widget's performance either. Has anyone made the DynamicLegend Widget work with group layers and their sublayers? I haven't found any examples yet. Thanks for your help in advance! Colter [ATTACH=CONFIG]15321[/ATTACH]
... View more
06-19-2012
08:41 AM
|
0
|
0
|
464
|
POST
|
Thanks Robert for pointing me in this direction! I got to a point in the .as code where I can stop a sublayer from displaying completely. However, I still want the data to display if the root layer is activated. This is the code I am working with at the moment: if (layerInfos)
{
var rootLayers:Array = findRootLayers(layerInfos);
for each (var layerInfo:LayerInfo in rootLayers)
{
var name:String = layerInfo.name;
if (name=='Transportation Projects')
{
// addChild(createTocLayer(this, layerInfo, layerInfos, visibleLayers, layer));
}
else
{
addChild(createTocLayer(this, layerInfo, layerInfos, visibleLayers, layer));
}
}
} With the code as-is, the layer Transportation Projects (which is a group layer within a map service) will not display. I would assume if I can remove the right arguements from the 'addChild' code, I can make the layer continue to display, without allowing the user to drill into the sublayers. When I attempt to change the 'addChild' code, I get a variety of errors, since I am messing with properties. Any ideas to work around this? Thank you for your help! Colter
... View more
03-15-2012
07:07 AM
|
0
|
0
|
189
|
POST
|
Hi All! I have a multi-layered map service that I would like to deploy as a dynamic layer in Flex. The trick is that I want the user to only have the ability to turn the entire service on or off (and not individual sublayers). From the forum threads that are similar to mine, it seems unlikely that I can pull this off, but has anyone tried this? A map cache is a potential back-up option, but the dynamic layer would be easier to update! Thanks for your help in advance! Colter
... View more
03-14-2012
10:33 AM
|
0
|
3
|
1711
|
POST
|
Hello All, I am trying to fill data in a field through Model Builder which requires me to concatenate data from two fields and then separate the data with a hyphen. The issue I have is that in many cases, the second field has no data and thus, there is no point to having a hyphen. Is there a relatively simple if statement that could handle this issue? Thank you for your help in advance! Colter
... View more
12-14-2011
12:01 PM
|
0
|
3
|
830
|
POST
|
I have not been able to make the terrain file work with Image Analysis. I also have contour lines available, but I am still not finding any tools that I have access to (I have no access to 3D or Spatial Analyst). Any other ideas? Thank you! Colter
... View more
12-13-2011
08:19 AM
|
0
|
0
|
272
|
POST
|
Hello All, I am trying to display and label contour lines from a terrain file using the Layer Properties dialog. I can classify my contours with no problem, but I need text labels for them as well. I do not have 3D or Spatial Analyst available to me, so I am wondering if there is an alternate method to get the contour labels on my map. Thank you for your help in advance! Colter
... View more
11-01-2011
06:01 AM
|
0
|
0
|
692
|
POST
|
Hello All, With some added security applied to our GIS service data, we are trying to assemble a proxy page that will access the data held within our local REST services directory. However, using a sample ESRI script, as shown below, is not allowing for a redirect to the REST services directory. Has anyone been able to forge through this? In this case, we are trying to throw credentials at the server. We may consider switiching to a SQL-based server instance (to use dynamic tokens), but we would like to avoid it. (Our srever is the 6th one down [http://OURSERVER/ArcGIS/rest/services].)
<?xml version="1.0" encoding="utf-8" ?>
<!-- Proxy config is used to set the ArcGIS Server services that the proxy will forward to.
mustMatch: false to only proxy to sites listed, false to proxy to any site -->
<ProxyConfig mustMatch="false">
<serverItems>
<!-- serverUrl options:
url = location of the ArcGIS Server, either specific URL or stem
matchAll = false to forward any request beginning with the url
token = (optional) token to include for token secured services, usually a long-term token
tokenUrl = (optional) token service for a Web site (url)
timeout = (optional) short-term timeout for a token in minutes
username = (optional) username for a token or http secured site
password = (optional) password for a token or http secured site
domain = (optional) domain for an http secured site
-->
<serverItem url="http://sampleserver1.arcgisonline.com/arcgis/rest/services"
matchAll="false" />
<serverItem url="http://sampleserver2.esri.com/arcgis/rest/services/"
matchAll="false" />
<serverItem url="http://sampleserver3.arcgisonline.com/arcgis/rest/services/"
matchAll="false" />
<serverItem url="http://server.arcgisonline.com/arcgis/rest/services"
matchAll="false" />
<serverItem url="http://net931/ArcGISToken/rest/services"
matchAll="false" tokenUrl="http://net931/arcgistoken/tokens"
username="test" password="test.test"
timeout="5" />
<serverItem url="http://OURSERVER/ArcGIS/rest/services"
matchAll="false" domain="test" username="user_id" password="password" />
<!--<serverItem url="http://net931/ArcGISToken/rest/services"
matchAll="false"
token="XONNvtvh9u-Depi26nvMxUaSm-q-_aft9ipe6NdyDlaWajbHyxPNskCoMe9CmtjV" />-->
</serverItems>
</ProxyConfig> Thanks in advance! Colter
... View more
09-07-2011
08:11 AM
|
0
|
0
|
290
|
POST
|
Hello, I am trying to set-up authentication for our Viewer for Flex application using dynamic tokens. I am not ready to test this method yet, but I am wondering how the 'userName' and 'password' tags will be filled in using the dynamic token. In my initial searches in my source files, I have not found any code refering to an 'appSettings' section as referenced in your proxy CONFIG file. Thank you for your help in advance! Colter
... View more
09-06-2011
09:47 AM
|
0
|
0
|
182
|
POST
|
Hello, I am wondering if there is any other way to build shaded relief within ArcGIS besides using the Hilshade tool, since we do not have 3D/Spatial Analyst. We would like to use our LIDAR data to produce the relief. Of the LIDAR data, we currently have a terrain file, and an elevation points file to work with. I would be willing to use other software for this, but only if I can bring the final relief into ArcMap as a raster, for use in a cached map service. Thank you all in advance! Colter
... View more
08-22-2011
06:19 AM
|
0
|
4
|
643
|
POST
|
Hello All, I am working on Mr. Scheitlin's Identify Widget, and I am wondering if there are any side effects to setting the navigation setting to "true" (by default they are all "false"). My changed code is as follows (from IdentifyWidget.mxml, approx Lines 368 -372): lastTool = selectedDrawingIcon.name;
setMapNavigation("none", "");
map.panEnabled = true;
map.mapNavigationEnabled = true;
map.rubberbandZoomEnabled = true; Simply, this should enable panning and rubber band zooming to work while the Identify Widget is active. However, I am guessing there may have been a reason that these are set to not run in the file that is available online. I would prefer to keep the navigation settings activated, thus the question. Thanks! Colter
... View more
08-04-2011
08:04 AM
|
0
|
0
|
301
|
Online Status |
Offline
|
Date Last Visited |
12-13-2023
05:04 PM
|