Select to view content in your preferred language

LayerList Full-Extent Action for GroupLayer

1452
2
Jump to solution
02-06-2018 04:13 AM
TubaKumbara
Regular Contributor

Hello. I'm using layerlist trigger actions which you documented at below link. First of all thanks for this useable property.

LayerList widget with actions | ArcGIS API for JavaScript 4.6 

But full-extent action is working for map layers only (tile, mapimage etc..) doesn't work for grouplayers.

opacity action is working on all layers

Is there any way to do full-extent action for grouplayers?

Thanks inadvance.

0 Kudos
1 Solution

Accepted Solutions
RodrigoFelga
Regular Contributor

The group Layer does not have the fullExtent property.

You can calculate a extent using the layers of the group layers or you can hide the full extent button when it's a group layer

View solution in original post

0 Kudos
2 Replies
RodrigoFelga
Regular Contributor

The group Layer does not have the fullExtent property.

You can calculate a extent using the layers of the group layers or you can hide the full extent button when it's a group layer

0 Kudos
TubaKumbara
Regular Contributor

i'm going to hide button then. thanks.