glen.rhea

centerandzoom & onClick event mappoint spatialreference null

Discussion created by glen.rhea on Sep 17, 2010
Latest reply on Sep 17, 2010 by DSwingley-esristaff
I have a "zoom to county" drop down that uses centerandzoom which works great however all my onclick events fail when I use the zoom because mappoint spatialreference is null until I pan the map. Once I pan the map all my onclick events work fine.

This issue also affects another function that uses centerandzoom but displays a layer instead. The layer doesn't show up until I pan a little.

There is too much code to post so here is a link to the app:
http://dev.geostor.arkansas.gov/G6/Viewer.html

All my code is in http://dev.geostor.arkansas.gov/G6/js/Viewer.js and the two functions I'm referring to are zoomCounty() and xyZoom()

Thanks for your time,
Glen

Outcomes