Select to view content in your preferred language

Using Button Widget to switch Layers or WebMap

2784
10
Jump to solution
10-13-2023 01:16 AM
Labels (1)
JasonBOCQUET
Frequent Contributor

Hello, 

I want to develop an application which can allow my coworker to consult some of information classified into specific themes.

To represent this themes, I want to use button to create a "toolbar" like this :

JasonBOCQUET_0-1697184752143.png

The idea is that when you click on one of the icons, it changes the layer that is displayed in the map or it changes the webmap (depending on what is achievable according to the Experience Builder mechanics).

 

But when i try to do that, i don't find where in the button widget i can parameter my data to do that. Anyone have the idea ?

 

I see it's possible to create something with VIew and the view panel widget, but i can't create icon.

0 Kudos
1 Solution

Accepted Solutions
JeffreyThompson2
MVP Regular Contributor

The best way to achieve this without Developer Edition is to place different Map Widgets into a Widget Controller. Use the Single widget and Fixed panel options. Then give each map a separate icon.

Something similar can be achieved with the Section and Views Navigation Widgets. With the Show Icon option in the Views Navigation Widget and setting the icon in the Section Widget, but it does not appear possible to make the Title blank.

JeffreyThompson2_0-1697202916221.pngJeffreyThompson2_1-1697202957107.png

You could also place your maps on separate pages, but the page names cannot be made blank either.

GIS Developer
City of Arlington, Texas

View solution in original post

10 Replies
JeffreyThompson2
MVP Regular Contributor

The best way to achieve this without Developer Edition is to place different Map Widgets into a Widget Controller. Use the Single widget and Fixed panel options. Then give each map a separate icon.

Something similar can be achieved with the Section and Views Navigation Widgets. With the Show Icon option in the Views Navigation Widget and setting the icon in the Section Widget, but it does not appear possible to make the Title blank.

JeffreyThompson2_0-1697202916221.pngJeffreyThompson2_1-1697202957107.png

You could also place your maps on separate pages, but the page names cannot be made blank either.

GIS Developer
City of Arlington, Texas
JasonBOCQUET
Frequent Contributor

Thanks for your reply ! For each of your solution I have a problem :

 

Widget Controller : It works very well, but when i click on one of each map widget in the controller, it's only show me a little windows with my map :

JasonBOCQUET_0-1697203702928.png

But i want to replace my big map in back with one of the maps selected in the controller widget, not to have a little windows like this. How can i change that ?

 

Views Navigation and Section : Are you using ArcGIS Online ? Because i don't have the "Icon" option on Enterprise T_T

JasonBOCQUET_1-1697203790281.png

It's sad because it could be the very best way to solve my problem !

 

0 Kudos
JeffreyThompson2
MVP Regular Contributor

Upon further research, the ability to add icons in Views/Sections is a Experience Builder 1.12 addition. Enterprise is several versions behind on Experience Builder.

JeffreyThompson2_0-1697205050696.png

Some of these Widget Controller options also appear to be Experience Builder 1.12.

JeffreyThompson2_1-1697205203574.png

Placing your maps on separate pages may be the only option in earlier versions.

GIS Developer
City of Arlington, Texas
0 Kudos
JasonBOCQUET
Frequent Contributor

Well. I'm on Enterprise 1.11 but my ArcGIS Enterprise was installed in earlier September. Don't know why I do not have the lastest version (which be upload on July if I trust your screenshot).

But that's okay. I'm gonna see to upgrade my Enterprise to the lastest version and then, I can use your solution.

Thank you !

0 Kudos
JeffreyThompson2
MVP Regular Contributor

Enterprise 11.1 is on Experience Builder 1.10. When Enterprise 11.2 is released (next month?), it will be on Experience Builder 1.12. 1.12 was a big Experience Builder upgrade, but is it worth upgrading your entire organization for a few new Experience Builder options? That's up to your organization.

GIS Developer
City of Arlington, Texas
0 Kudos
JasonBOCQUET
Frequent Contributor

Ok I Understand the point !

Why did you ask me for that ? It's complicated (or risky ?) to upgrade the entire organization to the future new version ? 

0 Kudos
JeffreyThompson2
MVP Regular Contributor

The complexity and risk of an Enterprise update is the primary reason ArcGIS Online and the job title of GIS Administrator exist. Our last upgrade took six months of planning and coordination.

GIS Developer
City of Arlington, Texas
0 Kudos
JasonBOCQUET
Frequent Contributor

I think for us it's more easy, we already install the Enterprise in the last week of September and we are just started to try to develop our application in Experience Builder. 

 

We have almost nothing in term of data, feature layers in our content. We just try to create our application correctly before to use our data.

In consequence, it's more easily to make an update no ?

 

0 Kudos
JeffreyThompson2
MVP Regular Contributor

A small, new organization migrating between sequential minor versions of Enterprise is the easiest possible upgrade scenario. An Enterprise upgrade should not be a big deal for you.

GIS Developer
City of Arlington, Texas
0 Kudos