Building a page that opens up a map and zooms to the extent of the feature ID passed to it from the previous page.
1. the feature ID is set in the "localStorage" of page 1
2. in Page 2 I retrieve that value and attempt to zoom to that feature.
3. I have a function that will do the zooming but I can't get it to work.
4. Here is the function:
a. if I put that function within the REQUIRE code block I get: ReferenceError: Query is not defined
b. if I put that function outside the REQUIRE code block I get: "zoomToFeatureExtent()" no defined.
How am I supposed to be doing this?
I finally figured it out. The KEY being the first line in the section at the bottom:
The "whenLayerView" listener on the "view".
So now when I pass that FeatureID value and this layer is loaded it begins the process of querying and zooming.