Example #1
0
        private void RotateSymbol(IMuteMap map, double dx, double dy,
                                  bool snapToFeatures = false, bool snapToAxes = false)
        {
            var layer   = map.GetLayer(CurrentObject.LayerHandle);
            var fs      = layer.FeatureSet;
            var feature = fs.Features[CurrentObject.ObjectIndex];

            if (feature == null)
            {
                return;
            }

            var projCoordinate = _context.Map.PixelToProj(new Coordinate(dx, dy));

            CurrentObject.UpdateRotationField(layer, projCoordinate.X, projCoordinate.Y, snapToFeatures, snapToAxes);

            map.Redraw();
        }