Zoom To functionality via javascript?

3563
2
03-27-2015 04:02 AM
MarkJones7
Occasional Contributor

Good Morning Everyone,

I am wondering if it is possible to achieve the "zoom to" functionality via javascript? I would like to create a widget that lists specific table rows from a layer and then when the user clicks on one of the items in the list it will zoom to that section of the map? I realize this is what the Attribute Table Widget does, but was just wondering if this could be done through a custom widget.

Any and all help/advice is greatly appreciated.

Thank you,

Mark

0 Kudos
2 Replies
AnthonyGiles
Frequent Contributor II

Mark,

Have a look at the sample here:

DataGrid with zoom button | ArcGIS API for JavaScript

Regards

Anthony

MarkJones7
Occasional Contributor

Thanks Anthony. I'll give it a look.

Mark

0 Kudos