Select to view content in your preferred language

ZoomTo going to the wrong location, Rest not returning geometry

334
0
09-15-2010 05:32 AM
KevinSesock
Emerging Contributor
I'm not sure what to make of this. I can zoom in on an object using Map.ZoomTo, but both in Visual Studio, when I drill down on my object after a query task, there is no geometry, and when I look in Rest services and query against the layer, there's no geometry being returned. When I zoom in using Map.ZoomTo, or Map.ZoomToResolution I'm being sent to the wrong location. The feature I was attempting to zoomto will often by way off the side of the map.

This seems to me to most likely be a spatial reference issue, but I'm not sure.

The layers that we're working against were originally in an Albers spatial reference. They were set to 4326 but were not physically reprojected (maybe one or two have been since this whole things started). We're using base maps from ESRI in 4326, so that's what the spatial reference of our entire map element is in.

Any thoughts?
0 Kudos
0 Replies