Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I'm trying to zoom to a graphic retuned from the query;

        query.OutSpatialReference = MyMap.SpatialReference;
        query.ReturnGeometry = true;

After this query I used myMap.zoomTo(graphic.Geometry) and tried to zoom to a specific extent but nothing happens.

Does anyone know why this does not work?

Thank you.

share|improve this question

1 Answer 1

I'm not sure what all you're passing into the query, and what the geometry of the layer you're querying might be. First, you should make sure that it does have some sort of geometry. Second, check that the geometry extent makes sense (same spatial reference, and within the map's extent).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.