Comments (9)
@mlrgisonline I'm sorry to hear that. Adding support for sub layers was one of the most common requests we received for this template.
At the next release I can add a configuration option that allows you to disable sub layers for the hosted version. For this release if you download the template and host it locally you can modify the code to turn off sub layer support. To do so search the code for the LayerList widget then add the sublayers constructor option and set it to false.
var toc = new LayerList({
map: this.map,
subLayers: false,
layers: arcgisUtils.getLayerList(this.config.response)
}, domConstruct.create("div", {}, layersDiv));
toc.startup();
from viewer.
Hi Kelly,
Thanks for your quick response! Adding a configurable option to disable sub layers in the next release would be wonderful. I can see the benefit of being able to view sub layers however our layers are sometimes so complex that the Layers window becomes extremely cluttered. Expanding them has made the heads of non-GIS users in our organization collectively explode. :) Thanks for your help and I look forward to the next release!
from viewer.
Speaking to the complexity of sub layers. It was nice to build them, configure them (symbols, zoom levels, etc), and hide them under the primary in the Layers window. Giving the non-technical end user only one check-box to worry about was my version of employing the K.I.S.S doctrine.
Thanks again!
from viewer.
I agree simplicity is good!
from viewer.
Nearly all of our 15 employees complain about the expanded sub-layers on an almost daily basis. I keep telling them it's not that bad and a configuration setting is forthcoming in an updated release. I wish we had the resources to host locally but we rely on the served version.
from viewer.
@mlrgisonline its actually available now. It was updated in the minor update we did a few weeks ago. If you go to the config panel for the template you should see a new option about sub layers. Checking that will give you the 'old' behavior of the layer list.
from viewer.
@mlrgisonline i was gonna say, why not use something free like github pages?.
kelly's response is much better.
from viewer.
Thanks for your replies. Checked for a configuration setting a little while ago so I must have just missed the update.
John, thanks for the suggestion to host on Github. You'll be shocked to know that "web stuff" is not my area of expertise but with some reading and a little luck I'll machete' my way through it. :)
from viewer.
i'm happy to help. feel free to ping me using @jgravois in an issue like this (within your own repo) if you ever hit a roadblock.
closing this issue now, but feel free to post again if you've got more questions on the same topic.
from viewer.
Related Issues (20)
- Save button for Editing tool. HOT 1
- URL parameter "find" not using custom geocoder HOT 1
- Configure Layout HOT 3
- Small UI issue when using black color theme HOT 2
- Portal installation help sought! Not finding JavaScript libraries HOT 1
- add cutvisible and reshapevisble to editor but can not use them ,however the union can workwell HOT 4
- Add documentation in the readme for adding proxy rules HOT 1
- Search Box now generating an error HOT 5
- Search Widget crashes the application on iOS 9.2 and Safari HOT 18
- Print utility doesn't seems to be working with arcgis 10.3 map HOT 2
- ArcGIS for Server map service HOT 1
- the link in resources is lost :Loading a locally-defined webmap, instead of from AGOL HOT 1
- Search Box "Search All Sources" not searching all sources.
- search layer HOT 2
- Add support for definition queries via URL parameter
- Error when reload the map
- Select HOT 1
- Line and profile do not appear
- Language selection HOT 2
- Remove Google Plus from Sharing panel HOT 1
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 viewer.