Turn on/off all layers in one click
Hi All,
As we know Geocortex provides the end users with layers that the administrator control it’s on/off at manager level.
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f20000000CNc&feoid=Body&refid=0EMf2000000E41p" _/_img_
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f20000000CNc&feoid=Body&refid=0EMf2000000E41u" _/_img_
I am wondering if there is a way to turn on/off all layers in one click, so the end user can turn off all layers and turn on the needed layers.
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f20000000CNc&feoid=Body&refid=0EMf2000000E41z" _/_img_
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f20000000CNc&feoid=Body&refid=0EMf2000000E424" _/_img_
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=906f20000000CNc&feoid=Body&refid=0EMf2000000E429" _/_img_
Thank you in Advance
Best,
Fatin
0
-
You can do this without having to develop a workflow. Setup two layer themes "All Layers On" and "All Layers Off". 0 -
Hi Richard,
“Layer themes” is not a generic tool and needs administration as layers are added. Fatin refers to a generic tool that can do this sort of thing without necessarily creating themes. In ArcGIS desktop for example, there is an option to apply this decently.
thanks
Jamal0 -
Hi Richard,
in our organization, we have a huge number of layers, and we cannot reflect all these layers as themes. This will be a time consuming for the administrator to create many themes.
Moreover, many users need a specific layer for study purpose, so we cannot inforce them to open a specific themes, and then turn on/off the rest or needed layers.
What do you suggest?
Best,
Fatin0 -
You can use Set Layer List Item Info in workflow. And set up a Toggle button in toolbar to trigger the workflow.
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f20000000SRq&feoid=Body&refid=0EMf2000000E44Z" _/_img_0 -
You could put layers into folders, and then just need to turn on and off at the folder level. That being said, we use Layer Themes on our site with many layers. They are not hard to manage. We let each unit decide what layers they want on their layer theme, letting them decide between simplicity and ease of having layers in one place. Layers can easily be put onto more than one layer theme. Users can always switch layer themes if they need access to a layer not on their theme. 0 -
I still want to push for Layer Themes - no programming. You don't create a layer theme for each layer, but rather for groups of layers. Each layer theme has a basic set of layers, then you break up the rest of your layers into groups that go together logically. All of your layers are available, just not all at once. You set up your layers like you do now. Setting up the layer themes themselves is easy - it is just a matter of tagging which layers you want to include. You can always leave the "All Available Layers" layer theme turned on if you want. I do that for internal users, but not for our public site.
Layer Catalog would be another way to go, but you have a lot less control over the layers there. LG is pushing this, but I think it is still a ways to go before it is ready.
Here is my Public site that has Layer Themes:
https://maps.srcity.org/Html5Viewer/Index.html?viewer=publiccity0 -
I'm with you. I setup the "All Available Layers" theme with all Map Services turned off (Base Maps are always on and layers within the map services are left alone as set by the refernce sites that are consumed). It acts as a blank slate within the application. It's easy and fast. 0 -
Thanks Mike and Richard.
Correct. Themes can resolve the issue. It just has one disadvantage: as new services are added to the site, then they are automatically added to themes in turned on mode which requires visiting all the themes to turn them off.
am i correct?0 -
No, the opposite. Nothing is added to a layer theme automatically. When you add a new service, or new layers to an existing service, they are not added to any layer theme. Once added, you would then go into whatever layer theme you wanted the new layer to be on, and click the check box next to it to include in the layer theme. 0 -
My bad.
As new services are added to the site, then they are added to themes in an invisible mode (they don’t show up in the layer list as the theme gets active). This is a disadvantage.
What I needed here is to have all newly added layers to be automatically added in themes but in Turned OFF MODE (they should appear in the layer list but in turned off mode). This way no extra work is needed to fix the themes in case new layers are added
Is this possible?
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000fxt2&feoid=Body&refid=0EMf2000000kA1a" _/_img_
_img_ alt="User-added image" src="https://latitudegeo--c.na53.content.force.com/servlet/rtaImage?eid=907f2000000fxt2&feoid=Body&refid=0EMf2000000kA1f" _/_img_0 -
Dear Jack,
I used the workflow to turn on/ off all layers in the layer list, can I edit this workflow to make it turn on/off the identified layers only?
For example: I have a group that contain layers which are overlapped and what I want is to identify one of them to turn off it to see the hidden part of the other layer
Is this possible?
Best,
Lubna0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
11 Kommentare