// ***************** Remove ****************** // ******************************************* public static ILegendCommand CreateRemoveDrawingItemLayer(MapPresenter map, DrawingItemLayer layer) { var result = new LegendCommand() { PathMarkup = IRI.Jab.Common.Assets.ShapeStrings.Appbar.appbarDelete, Layer = layer, ToolTip = _removeToolTip, }; result.Command = new RelayCommand(param => { map.RemoveDrawingItem(layer); //map.Refresh(); }); return(result); }