Select to view content in your preferred language

ArcGIS API for JavaScript

1167
6
Jump to solution
03-17-2022 06:28 AM
noc123
by
Emerging Contributor

How to show/hide a PictureMarkerSymbol in ArcGIS API for JavaScript? You can take this example: https://developers.arcgis.com/javascript/latest/sample-code/satellites-3d/ . I would like to show/hide the satellites on the globe by clicking in a button.

0 Kudos
1 Solution

Accepted Solutions
KristianEkenes
Esri Regular Contributor

Here's an example of how to use LayerList within the context of the satellites sample: https://codepen.io/kekenes/pen/abEdJjo?editors=100

View solution in original post

6 Replies
ReneRubalcava
Honored Contributor
KristianEkenes
Esri Regular Contributor

Here's an example of how to use LayerList within the context of the satellites sample: https://codepen.io/kekenes/pen/abEdJjo?editors=100

noc123
by
Emerging Contributor

do you know how to disable LayerList for one of these elements(layers)? for example satellite tracks

0 Kudos
KristianEkenes
Esri Regular Contributor
noc123
by
Emerging Contributor

do you know if there's an way to show/hide two or more layers in the same time when showing/hiding one of them? maybe connecting them somehow.

0 Kudos
noc123
by
Emerging Contributor

Thank you guys!

0 Kudos