Using Feature to Populate Combobox and Zoom To causing spatial issue

652
3
01-25-2013 09:09 AM
PatrickKielty
New Contributor III
Hi everyone, I am struggling to figure this out. I took this code from here
I got it to populate the Combo box and add my layers, but when i select a State, it zooms to the Atlantic (Lat / Lon 0,0). I am using data from Esri's Sample Servers. Any Suggestions (my code is attached)

Thanks
0 Kudos
3 Replies
SteveCole
Frequent Contributor
ESRI's basemaps use the Web Mercator projection so you'll need to convert the lat/longs using the geographicToWebMercator function.
0 Kudos
PatrickKielty
New Contributor III
Thanks, but my FeatureLayer and QueryTask layers are not points, they are polygons. I just mentioned the Lat/Lon 0.0/0.0 to show where the query displays the returned polygon.

Thanks
0 Kudos
RuchiraWelikala
Occasional Contributor
Wonder if anyone has solved this issue?
0 Kudos