Select to view content in your preferred language

Map.WrapAround and FeatureLayer.Geometry not returning results

504
2
10-04-2011 01:54 AM
ChrisSmith
Emerging Contributor
Hi

I have set the Map.WrapAround property to true, the user can draw a polygon and the result of this is set as the FeatureLayer.Geometry property, FeatureLayer.Update() is then called. This returns the correct results.

If the user then pans the original world frame a couple of times to the left or right passing the dateline and the process as above is completed the FeaturLayer returns no results.

I have tried using the Geometry.NormalizeCentralMeridian() as suggested in the whats new section..
http://help.arcgis.com/en/webapi/silverlight/help/index.html#/What_s_new_in_2_2/0166000000m2000000/

Am I missing something obvious?

Thanks

Chris
0 Kudos
2 Replies
ChrisSmith
Emerging Contributor
Ok it works with a simple polygon, but if the geometry is a circle or a freehand line that has been closed to make a polygon it produces no results once the map has panned beyond the dateline.
0 Kudos
ChrisSmith
Emerging Contributor
have worked out what the issue is, the Normalize method expects the geometry to have a spatialreference set.
0 Kudos