Hi Guys,
Can anyone tell me how i can rotate features on mu feature layers? I'm currently having trouble getting them to rotate at all.
This is where my code is currently but it's not having any effect on the features on the layer
foreach (Overlay Overlay in this.winformsMap1.Overlays)
{
if (Overlay is LayerOverlay)
{
LayerOverlay LayerOverlay = (LayerOverlay)Overlay;
foreach (Layer Layer in LayerOverlay.Layers)
{
if (Layer is InMemoryFeatureLayer)
{
InMemoryFeatureLayer featurelayer = (InMemoryFeatureLayer)Layer;
foreach (Feature feature in featurelayer.InternalFeatures)
{
BaseShape Shape = feature.GetShape();
Shape.Rotate(new PointShape(7.56345, 50.4173111), 34);
}
}
}
}
}
thanks
Aaron