Git Product home page Git Product logo

Comments (9)

kellyhutchins avatar kellyhutchins commented on July 23, 2024

@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.

mlrgisonline avatar mlrgisonline commented on July 23, 2024

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.

mlrgisonline avatar mlrgisonline commented on July 23, 2024

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.

kellyhutchins avatar kellyhutchins commented on July 23, 2024

I agree simplicity is good!

from viewer.

mlrgisonline avatar mlrgisonline commented on July 23, 2024

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.

kellyhutchins avatar kellyhutchins commented on July 23, 2024

@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.
screen shot 2015-09-16 at 11 09 29 am

from viewer.

jgravois avatar jgravois commented on July 23, 2024

@mlrgisonline i was gonna say, why not use something free like github pages?.
kelly's response is much better.

from viewer.

mlrgisonline avatar mlrgisonline commented on July 23, 2024

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.

jgravois avatar jgravois commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.