Robert, how can I refresh eLayerList visible Status if I change programmatically the visibility from another widget??
Thanks,
Naty
Whoops, can't believe I didn't try that first. But yes, it does behave that way with the OTB widget. Guess I'll have to learn to not uncheck the box.
R_
Rhett,
Does it act the same way with the OTB LayerListWidget?
Hi Robert,
Not sure if you are already aware of this as I'm not real confident in the "new" forum search results. However, Utilizing your eLayerListWidget 3.6.2 in compiled version FV3.6.
I have a single service with multiple feature classes in it. Loading it as dynamic, but have a couple grouped layers with many of the sublayers set up to be able to edit with the edit widget.
If I preload="closed" the edit widget, then everything seems to be OK, but, once the edit widget has been opened (doesn't matter if you close it again or not), If I un-check the box next to the layer (as named in the config.xml), it will un-check all the point layers inside the grouped layers, but not the line layers.
The above is what it looks like BEFORE edit widget has been opened.
This is what it does once edit widget has been opened.
Also, I know all these are out of scale range in my example, but same result even if they are all visible.
Is this a known issue with the eLayerListWidget and EditWidget, or have I done something to make it "behave" this way?
I believe that this is related to grouped sub layers of a service. If I turn on a layer that is part of a group, and then turn off a layer that is not part of a group, the group layers automatically turn off too. My above post had the excluded layer inside a group layer. So even though the configuration is a little different, both scenarios are creating the same end result. Any one else seeing this?Matt
I am running into a slight problem when trying to exclude a sublayer from the eLayerList. I am using the following for the exclusion:Code:<excludelayers> <excludelayer mapservice="serviceNameInConfig">7</excludelayer> </excludelayers>This works fine when the viewer loads, sublayer 7 is not listed in the widget. Being that I have it turned on in the mxd it displays when the viewer loads as well, which is great. However, when I turn a layer on or off in the widget, the sublayer that is excluded turns off too. Once it turns off I can not get it to turn back on as it is excluded from the widget. I am using the latest version of both the viewer and the eLayerList. Any thoughts would be greatly appreciated.Thanks,Matt
Thanks for you advice. I have gone back to the mxd and set the full extent to the proper extent and republished. The zoom to function for the service works, but the individual layers don't behave consistently for the zoom to function. Some work, some don't.
Have you checked the full extent parameter in your REST service, to make sure it is correct? Try the zoom to function on the same layers that are causing the issue in the arcgisonline javascript viewer and see if it zooms to the proper location.
I am having issues with the Zoom to option. In certain grouped and non-grouped layers in a given service the Zoom to option zooms to latitude 0 longitude -105. When the zoom to function works incorrectly, it crashes the viewer.Please let me know if any of your users has experienced the same.
Derek, Not exactly, but you could place it in a panel in the main config.xml: <widgetcontainer paneltype="left" initialstate="open" size="300"> <widget label="Map Contents" config="widgets/eLayerList/eLayerListWidget.xml" url="widgets/eLayerList/eLayerListWidget.swf"/> </widgetcontainer>
<widgetcontainer paneltype="left" initialstate="open" size="300"> <widget label="Map Contents" config="widgets/eLayerList/eLayerListWidget.xml" url="widgets/eLayerList/eLayerListWidget.swf"/> </widgetcontainer>
<?xml version="1.0" ?> <configuration> <labels> <visibilitylabel>Layer Visibility</visibilitylabel> <expandall>Expand All Layers</expandall> <collapseall>Collapse All Layers</collapseall> <zoomtomakevisible>Zoom To Make Visible</zoomtomakevisible> </labels> <tocsettings> <collapselegends>false</collapselegends> <disablezoomtomenuoption>false</disablezoomtomenuoption> <expanded everything="false">false</expanded> </tocsettings> <excludegraphiclayers>true</excludegraphiclayers> <excludebasemaplayers>true</excludebasemaplayers> <usenewesridescription>false</usenewesridescription> <excludelayers> <excludelayer mapservice="Property Web"/> </excludelayers> </configuration>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.