Hi,
I am setting map current extent to one layer extent. but it’s not setting exactly to the layer features.
Code:
InMemoryFeatureLayer imRouteLayer = (InMemoryFeatureLayer)((LayerOverlay)wfMap.CustomOverlays[“RouteOverlay”]).Layers[“RouteLayer”];
if (imRouteLayer.InternalFeatures.Count > 0)
{
imRouteLayer.Open();
wfMap.CurrentExtent = imRouteLayer.GetBoundingBox();
imRouteLayer.Close();
}
Please suggest me for fixing it.
Thanks,
Riyaz